Skip to content

Commit

Permalink
Add trigger workflow (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
kowyo authored May 18, 2024
1 parent f07a869 commit 0b346d3
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 0b346d3

Please sign in to comment.