diff --git a/.github/workflows/update-node-dist.yml b/.github/workflows/update-node-dist.yml index 8bb51b31302..85574e73c96 100644 --- a/.github/workflows/update-node-dist.yml +++ b/.github/workflows/update-node-dist.yml @@ -13,7 +13,7 @@ on: - stable29 permissions: - contents: read + contents: write concurrency: group: update-node-dist-${{ github.head_ref || github.ref || github.run_id }} @@ -26,9 +26,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - with: - persist-credentials: false - token: ${{ secrets.BOT_GITHUB_TOKEN }} - name: Read package.json node and npm engines version uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.1 @@ -79,9 +76,7 @@ jobs: - name: Add and commit if: steps.changes.outputs.CHANGED != '' - env: - HEAD_REF: ${{ needs.init.outputs.head_ref }} run: | git add --force js/ css/ git commit --signoff -m 'chore(assets): recompile assets' - git push origin "$HEAD_REF" + git push origin ${{ github.head_ref }}