lolz/.github/workflows/update-now.yml

24 lines
568 B
YAML
Raw Permalink Normal View History

2024-03-07 02:24:31 +00:00
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
2024-06-29 01:26:43 +00:00
uses: actions/checkout@v4
2024-03-07 02:24:31 +00:00
- 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"