Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/trigger-parent-update.yml
Original file line number Diff line number Diff line change
@@ -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"
Loading