-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 923 Bytes
/
main.yml
File metadata and controls
31 lines (28 loc) · 923 Bytes
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
name: refresh config_files
on:
workflow_dispatch:
schedule:
- cron: "0 */4 * * *"
jobs:
refresh_config:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v3 # checkout the repository content to github runner.
- name: setup python
uses: actions/setup-python@v4
with:
python-version: 3.8 #install the python needed
- name: Install dependencies
run: |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: execute py script
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git pull --rebase
cat keys.txt | xargs -L 1 python main.py --referer https://cartes.gouv.fr/
python main.py full
git add .
git commit -m "refresh config files"
git push