Skip to content

Flat

Flat #51

Workflow file for this run

name: Flat
on:
push:
paths:
- '.github/workflows/flat.yml'
- 'postprocessing/**.ts'
workflow_dispatch: {} # Required even though this is currently empty
schedule:
- cron: "0 0 1 * *" # Run this workflow every month on the first day of the month
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Setup deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.30.x
- name: Check out repo
uses: actions/checkout@v3
- name: Fetch data (InterPlanetary One - Verifiers)
uses: githubocto/flat@v3
with:
http_url: https://api.datacapstats.io/public/api/getVerifiers
axios_config: axios_config.json
downloaded_filename: ./data/raw/interplanetaryone-verifiers.json
- name: Fetch data (InterPlanetary One - Verified Clients)
uses: githubocto/flat@v3
with:
http_url: https://api.datacapstats.io/public/api/getVerifiedClients
axios_config: axios_config.json
downloaded_filename: ./data/raw/interplanetaryone-verified-clients.json
- name: Fetch data (InterPlanetary One - LDN Allowances)
uses: githubocto/flat@v3
with:
http_url: https://api.datacapstats.io/api/getLdnAllowances?limit
axios_config: axios_config.json
downloaded_filename: ./data/raw/interplanetaryone-allowances.json
- name: Fetch data (filecoin-project/notary-governance - Issues)
uses: githubocto/flat@v3
with:
http_url: https://notary-governance-issues.deno.dev
downloaded_filename: ./data/raw/notary-governance-issues.json
- name: Process data (filecoin-project/notary-governance - Issues)
uses: githubocto/flat@v3
with:
http_url: https://empty-object.deno.dev
downloaded_filename: ./data/processed/notary-governance-issues.json
postprocess: ./postprocessing/parse-verifier-application-issue.ts
env:
DENO_FUTURE_CHECK: 1
- name: Generate data (Address Mapping)
uses: githubocto/flat@v3
with:
http_url: https://empty-object.deno.dev
downloaded_filename: ./data/generated/address-mapping.json
postprocess: ./postprocessing/generate-address-mapping.ts
env:
DENO_FUTURE_CHECK: 1
- name: Generate data (Verifiers)
uses: githubocto/flat@v3
with:
http_url: https://empty-object.deno.dev
downloaded_filename: ./data/generated/verifiers.json
postprocess: ./postprocessing/generate-verifiers-data.ts
env:
DENO_FUTURE_CHECK: 1