generated from childmindresearch/template-python-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Dispatch an event to ctk-build for building
- Loading branch information
1 parent
46cf1f6
commit 710349b
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}"}' |