-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 1.2 KB
/
6contratos25_26.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
name: Atualizar contratos 25 26
on:
workflow_run:
workflows: ["Atualizar contratos 24 25"]
types:
- completed
workflow_dispatch:
jobs:
update-data:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Run update script 2025-2026
run: python Dados/Coleta_dados/coleta_api.py "20250102" "20260101" "a" "\n" "\n]"
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email 'noreply.github.com'
git pull origin main
git add .
git commit -m "Atualização automática: $(date +'%Y-%m-%d %H:%M:%S')" || echo "Nada para commitar"
git push