Update lists #483
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update lists | |
on: | |
schedule: | |
- cron: "0 6 * * *" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
SUFFIX: https://raw.githubusercontent.com/erkexzcx/disconnectme-pihole/master/ | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Clear existing *.txt files | |
run: rm -f *.txt | |
- name: Update lists | |
run: python3 update.py | |
- name: Update README.md | |
run: python3 update_readme.py | |
- name: git push | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "[email protected]" | |
git add -A . | |
DATE=$(date +'%Y-%m-%d') | |
git commit -m "update $DATE" || exit 0 | |
git push |