Skip to content

Commit 45e1c7b

Browse files
committed
ascadw
1 parent e72e885 commit 45e1c7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/promote-branch.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,5 +144,6 @@ jobs:
144144
git config user.name "$(git log -n 1 --pretty=format:%an)"
145145
git config user.email "$(git log -n 1 --pretty=format:%ae)"
146146
git fetch origin
147-
git checkout -b ${{ needs.workflow-variables.outputs.target-branch }} origin/HEAD
147+
git switch ${{ needs.workflow-variables.outputs.default-branch }}
148+
git checkout -b ${{ needs.workflow-variables.outputs.target-branch }}
148149
git push

0 commit comments

Comments
 (0)