Beginner issue - relative path, ssf #50
-
I'm very new to Actions, so forgive me if this is dumb. I've got Flat Data properly grabbing my JSON and I'm working on the postprocessing. First off - there is no way to test locally... right? Second, I'm modifying the example given for the BTC demo, so far I only have this: import { readJSON, writeJSON, removeFile } from 'https://deno.land/x/flat@0.0.10/mod.ts'
const filename = Deno.args[0];
const json = await readJSON(filename);
console.log(json); When I manually run the action, I get:
This looks to be an error in something related to sheetjs. I also thought maybe the issue was my postprocess file being
Repo is here: https://github.com/cfjedimaster/eleventy_flat_data Edit 6/29/2021: Got deno installed locally, ran the same command GitHub is, and I get the same error. So it's got to be something dumb on my part. :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi there! No dumb questions, thanks for posting this.
With GitHub Actions, you can use the command line to trigger workflow runs but you can't fully simulate it locally. There are two approaches:
|
Beta Was this translation helpful? Give feedback.
Hi there! No dumb questions, thanks for posting this.
fixweather.js
and replaceDeno.args[0];
with just the name of a local filedeno run -q --allow-read --allow-write --allow-run --allow-net --allow-env --unstable fixweather.js
With GitHub Actions, you can use the command line to trigger workflow runs but you can't fully simulate it locally. There are two approaches: