Skip to content

flat-omie

flat-omie #1296

Workflow file for this run

name: flat-omie
on:
schedule:
- cron: 15 12 * * *
workflow_dispatch:
jobs:
scheduled:
runs-on: ubuntu-latest
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date -d 'tomorrow' +%Y%m%d)"
- name: Setup deno
uses: denoland/setup-deno@main
with:
deno-version: "1.8.2"
- name: Check out repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Flat Data
uses: githubocto/[email protected]
with:
http_url: https://www.omie.es/es/file-download?parents%5B0%5D=marginalpdbc&filename=marginalpdbc_${{ steps.date.outputs.date }}.1
downloaded_filename: public/data/omie_prices.json
postprocess: omie_dataset.js