Skip to content

Commit 51a8e1b

Browse files
committed
Add write permissions and remove branch creation
1 parent c614036 commit 51a8e1b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/update-jmxfetch-submodule.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
1113
steps:
1214
- name: Checkout repository
1315
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
@@ -22,10 +24,6 @@ jobs:
2224
- name: Pick a branch name
2325
id: define-branch
2426
run: echo "branch=ci/update-jmxfetch-submodule-$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
25-
- name: Create branch
26-
run: |
27-
git checkout -b ${{ steps.define-branch.outputs.branch }}
28-
git push -u origin ${{ steps.define-branch.outputs.branch }} --force
2927
- name: Commit and push changes
3028
env:
3129
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)