-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 926 Bytes
/
fetch-now.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Fetch Now Page
on:
schedule:
- cron: "* */4 * * *"
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
fetch-now-page:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
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@v5
with:
commit_message: 'fetch /now page'
commit_author: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>'
commit_user_email: 'github-actions[bot]@users.noreply.github.com'
commit_user_name: 'github-actions[bot]'
file_pattern: 'now.md'