-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace
dev/script/push-pr.sh
with an equivalent GHA via `workflow_…
…dispatch` i.e. manual invocation for better developer experience
- Loading branch information
1 parent
f4a5857
commit faf9322
Showing
2 changed files
with
29 additions
and
16 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,29 @@ | ||
name: push-pr | ||
on: | ||
push: | ||
branches: | ||
- 'move_push-pr_script_to_GHA' #FIXME remove as temporary to check this workflow works | ||
workflow_dispatch: # | ||
inputs: | ||
prNumber: | ||
description: 'PR number' | ||
required: true | ||
type: string | ||
# we decided not to have 'workflow_run' here (chained of CI success) for 'trusted' forks, as we don't know/control the | ||
# access control etc. - so keeping it manual only (via workflow_dispatch above) | ||
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_run: | ||
|
||
jobs: | ||
push: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: push-pr | ||
env: | ||
PR: ${{ inputs.prNumber || 4212 }} | ||
run: | | ||
echo "Pushing PR merge commit for ${PR} to remote pr${PR} branch" | ||
git fetch -f origin pull/${PR}/merge:pr${PR} | ||
git push -f origin pr${PR}:pr${PR} |
This file was deleted.
Oops, something went wrong.