mirror of
https://github.com/jbowdre/lolz.git
synced 2024-11-25 14:12:18 +00:00
post /now page on update
This commit is contained in:
parent
cdb91ad85f
commit
cf4a28bc26
1 changed files with 23 additions and 0 deletions
23
.github/workflows/update-now.yml
vendored
Normal file
23
.github/workflows/update-now.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
name: Update Now Page
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'now.md'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-now-page:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Update Now Page
|
||||||
|
run: |
|
||||||
|
request_body='{"listed": "1", "content": '"$(jq -Rsa . now.md)"'}'
|
||||||
|
curl --location --request POST --header "Authorization: Bearer ${{ secrets.OMG_TOKEN }}" \
|
||||||
|
"https://api.omg.lol/address/${{ secrets.OMG_ADDR }}/now" \
|
||||||
|
--data "$request_body"
|
Loading…
Reference in a new issue