Skip to content

Commit 0161055

Browse files
authored
Add trigger workflow (#6)
1 parent 7eda907 commit 0161055

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Trigger Workflow in hoa.moe
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
trigger:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Trigger workflow in hoa.moe
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
15+
run: |
16+
curl -X POST \
17+
-H "Accept: application/vnd.github.v3+json" \
18+
-H "Authorization: token $GITHUB_TOKEN" \
19+
https://api.github.com/repos/HITSZ-OpenAuto/hoa.moe/actions/workflows/course.yaml/dispatches \
20+
-d '{"ref":"main"}'

0 commit comments

Comments
 (0)