Combine grader service and convert into a single package #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Project Management Actions" | |
on: | |
issues: | |
types: | |
- opened | |
- reopened | |
jobs: | |
send_issue_to_management_tool: | |
runs-on: ubuntu-latest | |
steps: | |
- name: View issue information | |
env: | |
TITLE: ${{ github.event.issue.title }} | |
BODY: ${{ github.event.issue.body }} | |
run: | | |
echo "Issue title: $TITLE" | |
echo "Issue body: $BODY" | |
- name: Send issue to GitLab CI | |
env: | |
TITLE: ${{ github.event.issue.title }} | |
BODY: ${{ github.event.issue.body }} | |
run: | | |
curl -X POST --fail \ | |
-F token=${{ secrets.GITLAB_CI_TRIGGER_TOKEN }} \ | |
-F "ref=main" \ | |
-F "variables[TITLE]=$TITLE" \ | |
-F "variables[DESCRIPTION]=$BODY" \ | |
-F "variables[SOURCE]=github" \ | |
${{ secrets.GITLAB_CI_TRIGGER_URL }} |