-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (37 loc) · 1.22 KB
/
flat.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: data
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch: {}
push:
paths:
- .github/workflows/flat.yml
- ./data-ptime-en.js
- ./data-ptime-non-country-en.js
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Setup deno
uses: denoland/setup-deno@main
with:
deno-version: v1.10.x
- name: Check out repo
uses: actions/checkout@v2
- name: Fetch country names
uses: githubocto/flat@v3
with:
http_url: https://www.canada.ca/content/dam/ircc/documents/json/data-country-name-en.json
downloaded_filename: data-country-name-en.json
- name: Fetch processing times
uses: githubocto/flat@v3
with:
http_url: https://www.canada.ca/content/dam/ircc/documents/json/data-ptime-en.json
downloaded_filename: data-ptime-en.json
postprocess: ./data-ptime-en.js
- name: Fetch data for in Canada services
uses: githubocto/flat@v3
with:
http_url: https://www.canada.ca/content/dam/ircc/documents/json/data-ptime-non-country-en.json
downloaded_filename: data-ptime-non-country-en.json
postprocess: ./data-ptime-non-country-en.js