-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add post-release CI which triggers wheelhouse creation via gh
This requires a PAT to be created and stored in the appropraite repository secret
- Loading branch information
Showing
1 changed file
with
23 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,23 @@ | ||
name: Post Release | ||
# On publication of a release, or when manually triggerered | ||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
jobs: | ||
# Trigger creation of the wheelhouse via an api call. PAT required. | ||
trigger-wheelhouse-ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Use gh to trigger the workflow_dispatch event on the appropriate workflow in another repository. | ||
# This step may fail if the PAT is invalid or has expired | ||
# If so, create a fine-grained pat with actions: write and permissions on the appropriate repository, storing it in the relevant secret on this repository. | ||
- name: Trigger FLAMEGPU2-wheelhouse | ||
env: | ||
GH_TOKEN: ${{ secrets.WHEELHOUSE_TOKEN }} | ||
REPO: "FLAMEGPU/FLAMEGPU2-wheelhouse" | ||
WORKFLOW: "ci.yml" | ||
run: | | ||
gh workflow run ${WORKFLOW} -R ${REPO} | ||
sleep 5 | ||
gh run watch -R ${REPO} $(gh run list -R ${REPO} -w ${WORKFLOW} -L1 --json databaseId --jq .[0].databaseId) |