From a59b78de00e0f4cc4dda473922539ae7869e80eb Mon Sep 17 00:00:00 2001 From: Marco Gario Date: Wed, 9 Dec 2020 21:29:25 +0100 Subject: [PATCH] Compute hash of compiled queries --- src/init-action.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/init-action.ts b/src/init-action.ts index 4fe53b6fe..951f35c66 100644 --- a/src/init-action.ts +++ b/src/init-action.ts @@ -287,8 +287,13 @@ async function compileQueries( } } // Compute hash - const hash = "abc"; - return hash; + const globHash = require("glob-hash"); + const finalHash = await globHash({ + include: [`${config.tempDir}/**/.cache/data`], + files: true, + }); + logger.info(finalHash); + return finalHash; } void runWrapper();