-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (30 loc) · 1.04 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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