Skip to content

Commit

Permalink
ci: update workflow to enable single page build (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
kowyo authored Nov 17, 2024
1 parent 76d8408 commit e8eb487
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/trigger-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"'"}}'

0 comments on commit e8eb487

Please sign in to comment.