Skip to content

Commit

Permalink
re-instate the push-pr.sh script, since GHA won't have access to se…
Browse files Browse the repository at this point in the history
…crets for PRs from external forks

Co-authored-by: Andrew Nowak <[email protected]>
  • Loading branch information
twrichards and andrew-nowak committed Oct 4, 2023
1 parent 9ed8b92 commit 0e30f2a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions dev/script/push-pr.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

set -e


if [ -z $1 ]
then
echo "Please run this script with a PR number as its argument."
exit 1
fi

PR=$1

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}

0 comments on commit 0e30f2a

Please sign in to comment.