Skip to content

Commit

Permalink
Add trigger workflow (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
kowyo authored May 18, 2024
1 parent 09a416e commit 8a4995c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/trigger-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Trigger Workflow in hoa.moe

on:
push:
branches:
- main

jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger workflow in hoa.moe
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: |
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"}'

0 comments on commit 8a4995c

Please sign in to comment.