-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
5 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 |
---|---|---|
|
@@ -116,17 +116,16 @@ jobs: | |
git config user.name "prosoponator[bot]" | ||
git config user.email "[email protected]" | ||
# checkout the src branch | ||
git fetch --all | ||
git checkout ${{ github.event.inputs.src }} | ||
# check the source branch (e.g. staging) is up-to-date with the dest branch (e.g. main) | ||
if [ "$(git rev-list --count origin/${{ github.event.inputs.src }}..origin/${{ github.event.inputs.dest }})" -ne "0" ]; then | ||
echo "Source branch ${{ github.event.inputs.src }} is not up-to-date with destination branch ${{ github.event.inputs.dest }}. PR destination branch into the source branch and try again." | ||
exit 1 | ||
fi | ||
# checkout the src branch | ||
git fetch --all | ||
git checkout ${{ github.event.inputs.src }} | ||
git pull | ||
INTERIM="${{ github.event.inputs.interim}}" | ||
# set the interim branch name to release/<version_number> if not provided | ||
INTERIM="${INTERIM:-release/${{ github.event.inputs.version }}}" | ||
|