use git-auto-commit-action

This commit is contained in:
John Bowdre 2024-03-06 20:13:31 -06:00
parent 8162048ce7
commit d1511eb1b2

View file

@ -9,8 +9,10 @@ defaults:
shell: bash
jobs:
fetch-and-post-tempest:
fetch-now-page:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
@ -20,11 +22,8 @@ jobs:
"https://api.omg.lol/address/${{ secrets.OMG_ADDR }}/now" | \
jq -r .response.now.content > now.md
- name: Commit Now Page
run: |
git config --global user.email "<>"
git config --global user.name actions-user
if ! git diff --exit-code; then
git add now.md
git commit -m "Update now.md"
git push
fi
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'fetch /now page'
file_pattern: 'now.md'