Skip to content

Commit

Permalink
ci: update workflow to enable single page build (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
kowyo authored Nov 17, 2024
1 parent 0161055 commit 5c22fb9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/trigger-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Trigger Workflow in hoa.moe
name: Trigger Workflow in hoa-moe

on:
push:
Expand All @@ -9,12 +9,14 @@ jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger workflow in hoa.moe
- name: Trigger workflow in hoa-moe
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 5c22fb9

Please sign in to comment.