mirror of
https://github.com/jbowdre/lolz.git
synced 2024-11-21 12:52:17 +00:00
bump action versions
This commit is contained in:
parent
85ecf3ecc6
commit
2a3c361450
4 changed files with 6 additions and 6 deletions
4
.github/workflows/fetch-now.yml
vendored
4
.github/workflows/fetch-now.yml
vendored
|
@ -15,14 +15,14 @@ jobs:
|
|||
contents: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
- name: Fetch Now Page
|
||||
run: |
|
||||
curl --location --header "Authorization: Bearer ${{ secrets.OMG_TOKEN }}" \
|
||||
"https://api.omg.lol/address/${{ secrets.OMG_ADDR }}/now" | \
|
||||
jq -r .response.now.content > now.md
|
||||
- name: Commit Now Page
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: 'fetch /now page'
|
||||
file_pattern: 'now.md'
|
||||
|
|
4
.github/workflows/fetch-web.yml
vendored
4
.github/workflows/fetch-web.yml
vendored
|
@ -15,7 +15,7 @@ jobs:
|
|||
contents: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
- name: Fetch Web Page
|
||||
run: |
|
||||
response=$(curl --location --header "Authorization: Bearer ${{ secrets.OMG_TOKEN }}" \
|
||||
|
@ -25,7 +25,7 @@ jobs:
|
|||
jq -r .css <<< $response > web.css
|
||||
jq -r .head <<< $response > web_head.html
|
||||
- name: Commit Now Page
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: 'fetch web page'
|
||||
file_pattern: 'web.md web.css web_head.html'
|
||||
|
|
2
.github/workflows/update-now.yml
vendored
2
.github/workflows/update-now.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
- name: Update Now Page
|
||||
run: |
|
||||
request_body='{"listed": "1", "content": '"$(jq -Rsa . now.md)"'}'
|
||||
|
|
2
.github/workflows/update-web.yml
vendored
2
.github/workflows/update-web.yml
vendored
|
@ -16,7 +16,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
- name: Update Web Page
|
||||
run: |
|
||||
request_body='{"publish": true, "content": '"$(jq -Rsa . web.md)"', "css": '"$(jq -Rsa . web.css)"', "head": '"$(jq -Rsa . web_head.html)"'}'
|
||||
|
|
Loading…
Reference in a new issue