mirror of
https://github.com/jbowdre/lolz.git
synced 2024-11-23 21:42:17 +00:00
23 lines
568 B
YAML
23 lines
568 B
YAML
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@v4
|
|
- 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"
|