-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.04 KB
/
run.yaml
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
on:
push:
branches:
- master
schedule:
- cron: '0 0/4 * * *'
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v4 # checkout the repository content
- name: setup python
uses: actions/setup-python@v5
with:
python-version: '3.10' # install the python version needed
cache: pip
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute py script # run main.py
env:
API_KEY: ${{ secrets.RADARIO_API_KEY }}
run: python main.py
- name: push data files
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
if [ -n "$(git status --porcelain)" ]; then
git add .
git commit -m "Update Documentation"
git push
else
echo "no changes";
fi