mirror of
https://github.com/jbowdre/lolz.git
synced 2024-12-22 07:42:19 +00:00
use git-auto-commit-action
This commit is contained in:
parent
8162048ce7
commit
d1511eb1b2
1 changed files with 8 additions and 9 deletions
17
.github/workflows/fetch-now.yml
vendored
17
.github/workflows/fetch-now.yml
vendored
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in a new issue