From 8a3592f331bc9e0255e321990ac73fb07c2e6d59 Mon Sep 17 00:00:00 2001 From: Darrin-Lin Date: Fri, 5 Jun 2026 13:00:48 +0800 Subject: [PATCH] chore: add trigger parent workflow --- .github/workflows/trigger-parent-update.yml | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/trigger-parent-update.yml diff --git a/.github/workflows/trigger-parent-update.yml b/.github/workflows/trigger-parent-update.yml new file mode 100644 index 0000000..033f297 --- /dev/null +++ b/.github/workflows/trigger-parent-update.yml @@ -0,0 +1,22 @@ +name: Trigger Parent Repo Submodule Update + +on: + push: + branches: + - main # Triggered when code is merged/pushed into main + +jobs: + trigger-parent: + runs-on: ubuntu-latest + steps: + - name: Trigger Parent Submodule Update + env: + GH_TOKEN: ${{ secrets.PARENT_REPO_PAT }} + run: | + gh api \ + --method POST \ + -H "Accept: application/vnd.github+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + /repos/QuestFantasy/QuestFantasy/dispatches \ + -f "event_type=submodule-updated" \ + -F "client_payload[submodule]=frontend"