flat-canary #1141
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-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 |