diff --git a/.github/workflows/trigger-workflow.yml b/.github/workflows/trigger-workflow.yml index 5aaa1f0..fd728cd 100644 --- a/.github/workflows/trigger-workflow.yml +++ b/.github/workflows/trigger-workflow.yml @@ -13,8 +13,10 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} run: | + REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f2) + echo ${REPO_NAME} curl -X POST \ -H "Accept: application/vnd.github.v3+json" \ -H "Authorization: token $GITHUB_TOKEN" \ - https://api.github.com/repos/HITSZ-OpenAuto/hoa-moe/actions/workflows/course.yaml/dispatches \ - -d '{"ref":"main"}' + https://api.github.com/repos/HITSZ-OpenAuto/hoa-moe/actions/workflows/course-single.yaml/dispatches \ + -d '{"ref":"main","inputs": {"repo_name": "'"${REPO_NAME}"'"}}'