Skip to content

Commit 7b09ca6

Browse files
committed
dzcsda
1 parent 96661fc commit 7b09ca6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/promote-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,5 @@ jobs:
145145
git config user.email "$(git log -n 1 --pretty=format:%ae)"
146146
git fetch origin
147147
git switch ${{ needs.workflow-variables.outputs.default-branch }}
148-
git checkout -b ${{ needs.workflow-variables.outputs.target-branch }}
148+
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 }}
149149
git push

0 commit comments

Comments
 (0)