-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (43 loc) · 1.21 KB
/
daily_check_maps.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
name: Daily Check Maps
on:
schedule:
- cron: "0 15,20 * * *"
workflow_dispatch:
branches: [main]
jobs:
download:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_MAPA }}
SENDER_EMAIL: ${{ secrets.SENDER_EMAIL }}
PASSWORD_EMAIL: ${{ secrets.PASSWORD_EMAIL }}
RECEIVE_EMAIL: ${{ secrets.RECEIVE_EMAIL }}
steps:
- name: Check out the repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run the script
run: python setup.py
- name: Configure o Git
run: |
git config user.email "[email protected]"
git config user.name "mayaradaher"
- name: Adicionar arquivo gerado ao Git
run: |
git add data/data_previous.xlsx
- name: Checar status
run: |
git status
- name: Fazer commit das alterações
run: |
git commit -m "Adicionando arquivo gerado" || echo "Nothing to commit"
- name: Push para o repositório
run: |
git push