We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6973660 commit 145918aCopy full SHA for 145918a
.github/actions/ensure-release-branch/ensure-release-branch.sh
@@ -120,6 +120,8 @@ if execute_command git ls-remote --heads origin "$RELEASE_VERSION_BRANCH" | grep
120
execute_command --ignore-exit-code 1 --no-std -- git diff --quiet --cached "origin/$RELEASE_VERSION_BRANCH"
121
diff_result=$last_cmd_result
122
execute_command --ignore-errors --no-std -- git merge --abort
123
+ # Switch back to original branch
124
+ execute_command --no-std -- git switch -
125
if [ "$diff_result" -eq 1 ]; then
126
echo "Found file differences between $RELEASE_BRANCH and $RELEASE_VERSION_BRANCH"
127
execute_command --no-std -- git diff --name-only "origin/$RELEASE_VERSION_BRANCH" "origin/$RELEASE_BRANCH"
0 commit comments