Update checkout and git config for action.
Scrape latest DNS records / scheduled (push) Successful in 16s
Scrape latest DNS records / scheduled (push) Successful in 16s
This commit is contained in:
@@ -2,6 +2,7 @@ name: Scrape latest DNS records
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 * * * *'
|
- cron: '0 * * * *'
|
||||||
|
|
||||||
@@ -10,7 +11,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo
|
- name: Check out repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Fetch latest DNS records
|
- name: Fetch latest DNS records
|
||||||
env:
|
env:
|
||||||
@@ -19,8 +20,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Commit and push if it changed
|
- name: Commit and push if it changed
|
||||||
run: |-
|
run: |-
|
||||||
git config user.name "Automated"
|
git config user.name "gitea-actions[bot]"
|
||||||
git config user.email "actions@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 DNS records: $(date -u)" || exit 0
|
||||||
git push
|
git push
|
||||||
|
|||||||
Reference in New Issue
Block a user