Skip to content

flat-canary

flat-canary #1141

Workflow file for this run

name: flat-canary
on:
schedule:
- cron: '55 23 * * *'
workflow_dispatch:
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Get current date
id: date
run: |
echo "date_tomorrow=$(date -d "tomorrow" +'%d-%m-%Y')" >> $GITHUB_OUTPUT
- name: Setup deno
uses: denoland/setup-deno@main
with:
deno-version: v1.x
- name: Check out repo
uses: actions/checkout@v3
- name: Flat Data
uses: githubocto/flat@3.4.0
with:
http_url: https://api.esios.ree.es/archives/70/download_json
downloaded_filename: public/data/price.json
authorization: ${{ secrets.API_KEY }}
postprocess: canary.js