File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 paths :
66 - .github/workflows/estrutura.yml
77 schedule :
8- - cron : 0 3-6 * * 0-6
8+ - cron : " 0 3-6 * * 0-6"
9+
910jobs :
1011 schedule :
1112 runs-on : ubuntu-latest
@@ -14,14 +15,16 @@ jobs:
1415 uses : denoland/setup-deno@main
1516 with :
1617 deno-version : v1.x
18+
1719 - name : Check out repo
1820 uses : actions/checkout@v4
19-
20- # URL dos dados a serem baixados (http_url) e on nomes dos arquivos (downloaded_filename)
21+
2122 - name : Fetch data
2223 uses : githubocto/flat@v3
2324 with :
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
26-
27-
25+ http_url : " https://estruturaorganizacional.dados.gov.br/doc/estrutura-organizacional/completa.json?codigoPoder=1&codigoEsfera=1&codigoUnidade=86144&retornarOrgaoEntidadeVinculados=SIM"
26+ downloaded_filename : " anac/estrutura.json"
27+ flatten : " false"
28+
29+ - name : Pós-processamento JSON (Deno)
30+ run : deno run --allow-read --allow-write ./scripts/estrutura.ts anac/estrutura.json
You can’t perform that action at this time.
0 commit comments