File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Estrutura ANAC
22on :
3- workflow_dispatch :
4-
3+ workflow_dispatch : {}
4+ push :
5+ paths :
6+ - .github/workflows/estrutura.yml
7+ schedule :
8+ - cron : 0 3-6 * * 0-6
59jobs :
610 schedule :
711 runs-on : ubuntu-latest
1721 - name : Fetch data
1822 uses : githubocto/flat@v3
1923 with :
20- # A URL da API
21- http_url : ' https://estruturaorganizacional.dados.gov.br/doc/estrutura-organizacional/completa.json?codigoPoder=1&codigoEsfera=1&codigoUnidade=86144&retornarOrgaoEntidadeVinculados=SIM'
22- downloaded_filename : ' anac/estrutura.json'
23-
24- - name : Commit e push de arquivos, se houver mudanças
25- run : |
26- git config user.name github-actions
27- git config user.email [email protected] 28- git add :/
29- COMMIT_MESSAGE="$(date +"%Y-%m-%d %H:%M")"
30- git commit -m "$COMMIT_MESSAGE" || exit 0
31- git pull --rebase
32- git push
24+ http_url : https://estruturaorganizacional.dados.gov.br/doc/estrutura-organizacional/completa.json?codigoPoder=1&codigoEsfera=1&codigoUnidade=86144&retornarOrgaoEntidadeVinculados=SIM
25+ downloaded_filename : anac/estrutura.json
You can’t perform that action at this time.
0 commit comments