Flat #51
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: # Required even though this is currently empty | |
schedule: | |
- cron: '0 0 * * *' | |
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 | |
- name: Print Message | |
run: echo "Fetching data with https://kalshi-public-docs.s3.amazonaws.com/reporting/market_data_$(date -d "1 day ago" +'%Y-%m-%d').json" | |
# 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://kalshi-public-docs.s3.amazonaws.com/reporting/market_data_$(date -d "1 day ago" +'%Y-%m-%d').json | |
downloaded_filename: kalshi_volume_$(date -d "1 day ago" +'%Y-%m-%d').json |