Skip to content

run generate_doh_lists.py #111

run generate_doh_lists.py

run generate_doh_lists.py #111

Workflow file for this run

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