Skip to content

Commit f0a0dd7

Browse files
committed
ci: FIx permissions needed for update node dist files
Signed-off-by: Julius Knorr <jus@bitgrid.net>
1 parent dffe35d commit f0a0dd7

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

.github/workflows/update-node-dist.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
- stable29
1414

1515
permissions:
16-
contents: read
16+
contents: write
1717

1818
concurrency:
1919
group: update-node-dist-${{ github.head_ref || github.ref || github.run_id }}
@@ -26,9 +26,6 @@ jobs:
2626
steps:
2727
- name: Checkout
2828
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
29-
with:
30-
persist-credentials: false
31-
token: ${{ secrets.BOT_GITHUB_TOKEN }}
3229

3330
- name: Read package.json node and npm engines version
3431
uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.1
@@ -79,9 +76,7 @@ jobs:
7976
8077
- name: Add and commit
8178
if: steps.changes.outputs.CHANGED != ''
82-
env:
83-
HEAD_REF: ${{ needs.init.outputs.head_ref }}
8479
run: |
8580
git add --force js/ css/
8681
git commit --signoff -m 'chore(assets): recompile assets'
87-
git push origin "$HEAD_REF"
82+
git push origin ${{ github.head_ref }}

0 commit comments

Comments
 (0)