Skip to content

flat-tomorrow

flat-tomorrow #1062

Workflow file for this run

name: flat-tomorrow
on:
schedule:
- cron: 23 18 * * *
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
with:
fetch-depth: 0
- name: Flat Data
uses: githubocto/[email protected]
with:
http_url: https://api.esios.ree.es/archives/70/download_json
downloaded_filename: public/data/price.json
authorization: ${{ secrets.API_KEY }}
postprocess: tomorrow.js