Skip to content

Flat

Flat #727

Workflow file for this run

name: Flat
on:
push:
paths:
- .github/workflows/flat.yml # Only run a new workflow every time this file (flat.yaml) file changes
workflow_dispatch: # Required even though this is currently empty
schedule:
- cron: '0 1 * * *' # Run this workflow every day https://crontab.guru/every-day-at-1am
jobs:
scheduled:
runs-on: ubuntu-latest
steps: # This workflow has 3 steps
# The first step is to check out the repository so it can read the files inside of it and do other operations
- name: Check out repo
uses: actions/checkout@v2
# This step installs Deno, which is a new Javascript runtime that improves on Node. We'll use it for postprocessing later
- name: Setup deno
uses: denoland/setup-deno@main
with:
deno-version: v1.x
# The third step is a Flat Action step. We fetch the data in the http_url and save it as downloaded_filename
- name: Fetch data
uses: githubocto/flat@v3
with:
http_url: https://docs.google.com/spreadsheets/d/e/2PACX-1vQkI3r_1FDN5TfQ3vMh6MeJ01LW8gfjMSKB0qw6OCMcN9FbbAZnClBiotxrbh2p5v8nOe-BNbpLN2O-/pub?gid=1097885687&single=true&output=csv # The data to fetch every 5 minutes
downloaded_filename: voortgang.csv # The http_url gets saved and renamed in our repository
postprocess: postprocess.js # A postprocessing javascript or typescript file