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