Skip to content

Commit

Permalink
feat: Dispatch an event to ctk-build for building
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinderVosDeWael committed Jan 10, 2025
1 parent 46cf1f6 commit 710349b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/dispatch.yaml
Original file line number Diff line number Diff line change
@@ -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 }}"}'

0 comments on commit 710349b

Please sign in to comment.