From 8a4995c0d4fa3eca97a32a592b3281f0eb2a7635 Mon Sep 17 00:00:00 2001 From: Kowyo <110339237+kowyo@users.noreply.github.com> Date: Sat, 18 May 2024 17:58:08 +0800 Subject: [PATCH] Add trigger workflow (#1) --- .github/workflows/trigger-workflow.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/trigger-workflow.yml diff --git a/.github/workflows/trigger-workflow.yml b/.github/workflows/trigger-workflow.yml new file mode 100644 index 0000000..84a2d1d --- /dev/null +++ b/.github/workflows/trigger-workflow.yml @@ -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"}'