flat icon indicating copy to clipboard operation
flat copied to clipboard

Only run post-processing if the original data file has changed

Open alecglen opened this issue 2 years ago • 2 comments

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.

alecglen avatar Sep 24 '22 20:09 alecglen

As an alternative, I did try adding a check manually in my postprocess.ts script, as below: image

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?

alecglen avatar Sep 29 '22 00:09 alecglen

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.

RA80533 avatar Dec 05 '22 22:12 RA80533