mirror of
https://github.com/jbowdre/lolz.git
synced 2024-11-22 05:02:18 +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
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Fetch Now Page
|
- name: Fetch Now Page
|
||||||
run: |
|
run: |
|
||||||
curl --location --header "Authorization: Bearer ${{ secrets.OMG_TOKEN }}" \
|
curl --location --header "Authorization: Bearer ${{ secrets.OMG_TOKEN }}" \
|
||||||
"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
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
with:
|
with:
|
||||||
commit_message: 'fetch /now page'
|
commit_message: 'fetch /now page'
|
||||||
file_pattern: 'now.md'
|
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
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Fetch Web Page
|
- name: Fetch Web Page
|
||||||
run: |
|
run: |
|
||||||
response=$(curl --location --header "Authorization: Bearer ${{ secrets.OMG_TOKEN }}" \
|
response=$(curl --location --header "Authorization: Bearer ${{ secrets.OMG_TOKEN }}" \
|
||||||
|
@ -25,7 +25,7 @@ jobs:
|
||||||
jq -r .css <<< $response > web.css
|
jq -r .css <<< $response > web.css
|
||||||
jq -r .head <<< $response > web_head.html
|
jq -r .head <<< $response > web_head.html
|
||||||
- name: Commit Now Page
|
- name: Commit Now Page
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
with:
|
with:
|
||||||
commit_message: 'fetch web page'
|
commit_message: 'fetch web page'
|
||||||
file_pattern: 'web.md web.css web_head.html'
|
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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Update Now Page
|
- name: Update Now Page
|
||||||
run: |
|
run: |
|
||||||
request_body='{"listed": "1", "content": '"$(jq -Rsa . now.md)"'}'
|
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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Update Web Page
|
- name: Update Web Page
|
||||||
run: |
|
run: |
|
||||||
request_body='{"publish": true, "content": '"$(jq -Rsa . web.md)"', "css": '"$(jq -Rsa . web.css)"', "head": '"$(jq -Rsa . web_head.html)"'}'
|
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