-
Notifications
You must be signed in to change notification settings - Fork 3
63 lines (52 loc) · 1.68 KB
/
run-processorStep0.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Run processorStep0
on:
schedule:
- cron: '0 12 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
# cf. https://docs.github.com/en/github/setting-up-and-managing-billing-and-payments-on-github/about-billing-for-github-actions
#runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Increase git buffer size
run: |
git config --global http.postBuffer 1048576000
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: install gdal
run: |
sudo add-apt-repository ppa:ubuntugis/ppa
sudo apt-get update
sudo apt-get install gdal-bin
sudo apt-get install libgdal-dev
- name: Run Python script
run: |
python satromo_processor.py prod_config.py
env: # Set the secrets as env var
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
- name: Push tools files to repo
uses: github-actions-x/[email protected]
with:
push-branch: 'main'
commit-message: 'Tools files done'
force-add: 'true'
files: tools/
name: autoupdate
- name: Push processing files to repo
uses: github-actions-x/[email protected]
with:
push-branch: 'main'
commit-message: 'Processing files done'
force-add: 'true'
files: processing/
name: autoupdate