From 3749de554d23d3b9c9a647b8f7b5c133c2ca0f8e Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Wed, 22 Jan 2025 15:10:28 +0000 Subject: [PATCH] Create trigger_rebuild.yaml --- .github/workflows/trigger_rebuild.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/trigger_rebuild.yaml diff --git a/.github/workflows/trigger_rebuild.yaml b/.github/workflows/trigger_rebuild.yaml new file mode 100644 index 0000000..09d0260 --- /dev/null +++ b/.github/workflows/trigger_rebuild.yaml @@ -0,0 +1,20 @@ +name: Trigger Build + +on: + push: + branches: + - main # or whichever branches you want to monitor + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: Trigger container rebuild + run: | + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{ secrets.PUBLIC_REPO_SYNC_TOKEN }}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/Cian-H/my_nvim/dispatches \ + -d '{"event_type":"rebuild-container","client_payload":{"repository":"${{ github.repository }}"}}'