From cea44bc9b6a5761a85714c36e356a22391b39fb1 Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Sat, 3 Feb 2024 22:22:21 -0500 Subject: [PATCH] Fix .github/workflows/tamper-monkey.yaml (#24) * Use stefanzweifel/git-auto-commit-action@v5 * Give permissions to write --- .github/workflows/tamper-monkey.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tamper-monkey.yaml b/.github/workflows/tamper-monkey.yaml index 721574e..46551ae 100644 --- a/.github/workflows/tamper-monkey.yaml +++ b/.github/workflows/tamper-monkey.yaml @@ -6,11 +6,12 @@ jobs: gomplate: runs-on: ubuntu-latest + permissions: + contents: write + steps: - name: Checkout repository uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.ref }} - name: Install gomplate run: | @@ -21,10 +22,4 @@ jobs: - name: Run gomplate run: gomplate < script.js.tmpl > script.js - - name: Commit and push changes - run: | - git config --global user.name "GitHub Actions" - git config --global user.email "actions@users.noreply.github.com" - git add . - git commit -m "Update script.js using gomplate" || true - git push + - uses: stefanzweifel/git-auto-commit-action@v5