From 4f6ce4501e9fe0c3edffa8e7af37446fd3ac2beb Mon Sep 17 00:00:00 2001 From: Daniel Kogler Date: Tue, 17 Sep 2024 13:51:05 -0700 Subject: [PATCH] Add workflow files --- .github/workflows/trigger-update.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/trigger-update.yml diff --git a/.github/workflows/trigger-update.yml b/.github/workflows/trigger-update.yml new file mode 100644 index 0000000..070de4a --- /dev/null +++ b/.github/workflows/trigger-update.yml @@ -0,0 +1,22 @@ +name: Trigger Update in asd-projects-template + +on: + workflow_dispatch: + push: + branches: [main] + +jobs: + trigger: + runs-on: ubuntu-latest + steps: + - name: Trigger workflow in asd-projects-template + run: | + curl -X POST https://api.github.com/repos/OperationSpark/asd-projects-template/dispatches \ + -H "Accept: application/vnd.github.v3+json" \ + -H "Authorization: token ${{ secrets.PAT }}" \ + --data '{ + "event_type": "update-${{ github.event.repository.name }}", + "client_payload": { + "repo": "${{ github.event.repository.name }}" + } + }'