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