From d1511eb1b20f579d86dce3785c7119193e21fbd0 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Wed, 6 Mar 2024 20:13:31 -0600 Subject: [PATCH] use git-auto-commit-action --- .github/workflows/fetch-now.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/fetch-now.yml b/.github/workflows/fetch-now.yml index 1c1776d..282cf4a 100644 --- a/.github/workflows/fetch-now.yml +++ b/.github/workflows/fetch-now.yml @@ -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' +