Skip to content

Commit e821978

Browse files
authored
Create a target branch from master (#25)
1 parent 2684648 commit e821978

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/update-default-branch.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
if: steps.check_target_branch.outputs.target_branch_exists == 'false'
3030
run: |
3131
echo "Creating branch $TARGET_BRANCH from main"
32-
git checkout -b "$TARGET_BRANCH"
32+
git fetch origin main
33+
git checkout -b "$TARGET_BRANCH" origin/main
3334
git push origin "$TARGET_BRANCH"
3435
3536
- name: Get current default branch

0 commit comments

Comments
 (0)