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.
2 parents 3acf51d + b783ed9 commit 048f330Copy full SHA for 048f330
.github/workflows/create-branch.yml
@@ -6,6 +6,8 @@ on:
6
jobs:
7
create-branch:
8
runs-on: ubuntu-latest
9
+ permissions:
10
+ contents: write
11
steps:
12
- name: Checkout repository
13
uses: actions/checkout@v4
@@ -44,6 +46,6 @@ jobs:
44
46
git config user.name "github-actions[bot]"
45
47
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
48
- git fetch origin main
49
+ git fetch ${{ github.event.repository.default_branch }}
50
git checkout -b "$BRANCH_NAME" origin/main
51
git push origin "$BRANCH_NAME"
0 commit comments