Skip to content

Commit e94491f

Browse files
Update estrutura.yml
1 parent 5cf1c01 commit e94491f

1 file changed

Lines changed: 8 additions & 15 deletions

File tree

.github/workflows/estrutura.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
name: Estrutura ANAC
22
on:
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
59
jobs:
610
schedule:
711
runs-on: ubuntu-latest
@@ -17,16 +21,5 @@ jobs:
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

0 commit comments

Comments
 (0)