@@ -1,27 +1,27 @@
|
|||||||
name: Scrape latest DNS records
|
name: Scrape latest data
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
push:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 * * * *'
|
- cron: '0 * * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
scheduled:
|
scrape:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Fetch latest DNS records
|
- name: Fetch latest data
|
||||||
env:
|
env:
|
||||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
run: ./scrape.sh
|
run: ./scrape.sh
|
||||||
|
|
||||||
- name: Commit and push if it changed
|
- name: Commit and push if changed
|
||||||
run: |-
|
run: |-
|
||||||
git config user.name "gitea-actions[bot]"
|
git config user.name "gitea-actions[bot]"
|
||||||
git config user.email "gitea-actions[bot]@git.arirex.me"
|
git config user.email "gitea-actions[bot]@git.arirex.me"
|
||||||
git add -A
|
git add -A
|
||||||
git commit -m "Latest DNS records: $(date -u)" || exit 0
|
git commit -m "Latest Data: $(date -u)" || exit 0
|
||||||
git push
|
git push
|
||||||
|
|||||||
Reference in New Issue
Block a user