mirror of
https://github.com/jbowdre/lolz.git
synced 2024-11-22 05:02:18 +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
|
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
|
|
||||||
|
|
Loading…
Reference in a new issue