run generate_doh_lists.py #207
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: run generate_doh_lists.py | |
on: | |
schedule: | |
- cron: '0 0 1/2 * *' # Run at UTC midnight every second day. | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v2 # checkout the repository content | |
- name: setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11.x' | |
- name: execute py script # run generate_doh_lists.py | |
env: | |
APIKEY_IPIFY: ${{ secrets.APIKEY_IPIFY }} | |
run: python generate_doh_lists.py | |
- name: commit files | |
run: | | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add -A | |
git diff-index --quiet HEAD || (git commit -a -m "Scheduled update run" --allow-empty) | |
- name: push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: main |