From c326eaee983e5d5e90554245531658b415149a9d Mon Sep 17 00:00:00 2001 From: Kowyo <110339237+kowyo@users.noreply.github.com> Date: Sun, 17 Nov 2024 13:13:05 +0800 Subject: [PATCH] ci: update workflow to enable single page build (#1) --- .github/workflows/trigger-workflow.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/trigger-workflow.yml b/.github/workflows/trigger-workflow.yml index 5aaa1f0..fd728cd 100644 --- a/.github/workflows/trigger-workflow.yml +++ b/.github/workflows/trigger-workflow.yml @@ -13,8 +13,10 @@ jobs: 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}"'"}}'