Skip to content

Commit 91e2c84

Browse files
Update estrutura.yml
1 parent 1a0a7ed commit 91e2c84

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/estrutura.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,19 @@ on:
33
workflow_dispatch:
44

55
jobs:
6-
download-file:
6+
schedule:
77
runs-on: ubuntu-latest
88
steps:
9+
- name: Setup deno
10+
uses: denoland/setup-deno@main
11+
with:
12+
deno-version: v1.x
913
- name: Check out repo
1014
uses: actions/checkout@v4
11-
12-
- name: Baixar arquivo JSON da API
13-
uses: githubocto/flat@v4
15+
16+
# URL dos dados a serem baixados (http_url) e on nomes dos arquivos (downloaded_filename)
17+
- name: Fetch data
18+
uses: githubocto/flat@v3
1419
with:
1520
# A URL da API
1621
http_url: 'https://estruturaorganizacional.dados.gov.br/doc/estrutura-organizacional/completa.json?codigoPoder=1&codigoEsfera=1&codigoUnidade=86144&retornarOrgaoEntidadeVinculados=SIM'

0 commit comments

Comments
 (0)