Skip to content

Commit 34eb9b7

Browse files
Update estrutura.yml
1 parent 13f0684 commit 34eb9b7

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/estrutura.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on:
55
paths:
66
- .github/workflows/estrutura.yml
77
schedule:
8-
- cron: 0 3-6 * * 0-6
8+
- cron: "0 3-6 * * 0-6"
9+
910
jobs:
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

0 commit comments

Comments
 (0)