flat
flat copied to clipboard
Only run post-processing if the original data file has changed
My post-processing script is a fairly intensive process and uses around 20-50 of Action minutes per run. It would help me save on compute minutes if Flat first checked to see whether the original data had changed before kicking off the post-processing script.
As an alternative, I did try adding a check manually in my postprocess.ts
script, as below:
However, running the action yields the following error:
Error: TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'execSync'.
Any advice on what I'm missing?
Node.js modules have to be imported using their full URLs in Deno (see The std/node
Library).
Change "child_process" to "https://deno.land/std/node/child_process.ts" and it should work.