Skip to content

Commit 048f330

Browse files
authored
Merge pull request #11 from prgrms-web-devcourse-final-project/chore/git
chore[git]: create-branch 수정
2 parents 3acf51d + b783ed9 commit 048f330

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/create-branch.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
jobs:
77
create-branch:
88
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
911
steps:
1012
- name: Checkout repository
1113
uses: actions/checkout@v4
@@ -44,6 +46,6 @@ jobs:
4446
git config user.name "github-actions[bot]"
4547
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
4648
47-
git fetch origin main
49+
git fetch ${{ github.event.repository.default_branch }}
4850
git checkout -b "$BRANCH_NAME" origin/main
4951
git push origin "$BRANCH_NAME"

0 commit comments

Comments
 (0)