mirror of
https://github.com/davegallant/rfd-redirect-stripper.git
synced 2025-08-07 09:02:30 +00:00
Fix .github/workflows/tamper-monkey.yaml (#24)
* Use stefanzweifel/git-auto-commit-action@v5 * Give permissions to write
This commit is contained in:
13
.github/workflows/tamper-monkey.yaml
vendored
13
.github/workflows/tamper-monkey.yaml
vendored
@@ -6,11 +6,12 @@ jobs:
|
|||||||
gomplate:
|
gomplate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
ref: ${{ github.event.pull_request.head.ref }}
|
|
||||||
|
|
||||||
- name: Install gomplate
|
- name: Install gomplate
|
||||||
run: |
|
run: |
|
||||||
@@ -21,10 +22,4 @@ jobs:
|
|||||||
- name: Run gomplate
|
- name: Run gomplate
|
||||||
run: gomplate < script.js.tmpl > script.js
|
run: gomplate < script.js.tmpl > script.js
|
||||||
|
|
||||||
- name: Commit and push changes
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
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
|
|
||||||
|
Reference in New Issue
Block a user