Flat #397
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Flat | |
on: | |
push: | |
paths: | |
- .github/workflows/flat.yml # Only run a new workflow every time this file (flat.yaml) file changes | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 1 * *' # run once a month | |
jobs: | |
scheduled: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup deno | |
uses: denoland/setup-deno@main | |
with: | |
deno-version: v1.x | |
- name: Check out repo | |
uses: actions/checkout@v2 | |
- name: Fetch data | |
uses: githubocto/flat@v3 | |
with: | |
http_url: https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY # The data to fetch every day | |
downloaded_filename: data.json # The http_url gets saved and renamed in our repository as data.json | |
postprocess: postprocess.ts # A postprocessing javascript or typescript file written in Deno | |