From 710349b865a03dc393f68a3ff097ab9ff3864ba7 Mon Sep 17 00:00:00 2001 From: Reinder Vos de Wael Date: Fri, 10 Jan 2025 11:45:53 -0500 Subject: [PATCH] feat: Dispatch an event to ctk-build for building --- .github/workflows/dispatch.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/dispatch.yaml diff --git a/.github/workflows/dispatch.yaml b/.github/workflows/dispatch.yaml new file mode 100644 index 0000000..3a8c623 --- /dev/null +++ b/.github/workflows/dispatch.yaml @@ -0,0 +1,20 @@ +name: Trigger Build Workflow + +on: + workflow_run: + workflows: [Python Tests] + types: + - completed + +jobs: + dispatch: + if: ${{ github.event.workflow_run.conclusion == 'success' && github.ref_name == 'main' }} + runs-on: ubuntu-latest + steps: + - name: Dispatch + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.CTK_BUILD_PAT }} + repository: childmindresearch/ctk-build + event-type: dependency_updated + client-payload: '{"triggered_by": "${{ github.repository }}, on push event", "commit_sha": "${{ github.sha }}", "branch": "${{ github.ref }}"}' \ No newline at end of file