-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (34 loc) · 963 Bytes
/
portarias.yml
File metadata and controls
41 lines (34 loc) · 963 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
31
32
33
34
35
36
37
38
39
40
41
name: Portarias ANAC
on:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: '0 3 * * 1-5'
jobs:
portarias:
runs-on: ubuntu-latest
steps:
- name: Verificar repositório
uses: actions/checkout@v4
- name: Configurar python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Instalar dependências
run: |
python -m pip install --upgrade pip
pip install aiohttp pandas beautifulsoup4 jinja2
- name: Rodar o script
run: |
python scripts/portarias.py
- name: Commit e push de arquivos, se houver mudanças
run: |
git config user.name github-actions
git config user.email [email protected]
git add :/
COMMIT_MESSAGE="$(date +"%Y-%m-%d %H:%M")"
git commit -m "$COMMIT_MESSAGE" || exit 0
git pull --rebase
git push