Skip to content

Commit f7b730d

Browse files
committed
Ensure we check out the base branch, before creating the mergeback branch
1 parent c0f6445 commit f7b730d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/rollback-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ jobs:
6262
run: |
6363
set -x
6464
65+
# Checkout the base branch, since we may be testing on a different branch
66+
git checkout "$BASE_BRANCH"
67+
6568
# Generate a new branch name for the mergeback PR
6669
short_sha="${GITHUB_SHA:0:8}"
6770
NEW_BRANCH="mergeback/${VERSION}-to-${BASE_BRANCH}-${short_sha}"

0 commit comments

Comments
 (0)