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 96661fc commit 7b09ca6Copy full SHA for 7b09ca6
.github/workflows/promote-branch.yml
@@ -145,5 +145,5 @@ jobs:
145
git config user.email "$(git log -n 1 --pretty=format:%ae)"
146
git fetch origin
147
git switch ${{ needs.workflow-variables.outputs.default-branch }}
148
- git checkout -b ${{ needs.workflow-variables.outputs.target-branch }}
+ git checkout -b ${{ needs.workflow-variables.outputs.target-branch }} origin/${{ needs.workflow-variables.outputs.target-branch }} || git checkout -b ${{ needs.workflow-variables.outputs.target-branch }}
149
git push
0 commit comments