-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(automerge-sync-pr): trigger workflow with dispatch event from upst…
…ream workflow (#73)
- Loading branch information
Showing
2 changed files
with
32 additions
and
23 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
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 |
---|---|---|
|
@@ -26,7 +26,9 @@ jobs: | |
branch/unstable | ||
automerge | ||
- branch: experiment | ||
labels: branch/experiment | ||
labels: | | ||
branch/experiment | ||
automerge | ||
fail-fast: false | ||
steps: | ||
- name: Generate GitHub Auth Token | ||
|
@@ -54,6 +56,7 @@ jobs: | |
- name: Cherry pick changes into target branch | ||
# https://github.com/carloscastrojumo/github-cherry-pick-action | ||
uses: carloscastrojumo/github-cherry-pick-action@main | ||
id: cherrypick_pr | ||
with: | ||
branch: ${{ matrix.branch }} | ||
labels: | | ||
|
@@ -65,3 +68,16 @@ jobs: | |
cherry-pick-branch: cherrypick-${{ env.COMMIT_SHORT_SHA }}-${{ matrix.branch }} | ||
env: | ||
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | ||
|
||
- name: Trigger downstream workflow | ||
uses: convictional/[email protected] | ||
with: | ||
owner: ${{ github.repository_owner }} | ||
repo: flake.nix | ||
github_token: ${{ steps.generate_token.outputs.token }} | ||
workflow_file_name: automerge-sync-pr.yml | ||
ref: ${{ github.event.repository.default_branch }} | ||
client_payload: '{"pr_number":"${{ steps.cherrypick_pr.outputs.number }}"}' | ||
trigger_workflow: true | ||
propagate_failure: false | ||
wait_workflow: false |