From 0b962561187c29f4325c3f93cf5ef29b8afd1fcb Mon Sep 17 00:00:00 2001 From: Gert Hengeveld Date: Thu, 8 Feb 2024 12:13:39 +0100 Subject: [PATCH] Add missing fileHashing option to GitHub Action --- action-src/main.ts | 2 ++ action.yml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/action-src/main.ts b/action-src/main.ts index a14225a57..6e03156a4 100755 --- a/action-src/main.ts +++ b/action-src/main.ts @@ -101,6 +101,7 @@ async function run() { const exitOnceUploaded = getInput('exitOnceUploaded'); const exitZeroOnChanges = getInput('exitZeroOnChanges'); const externals = getInput('externals'); + const fileHashing = getInput('fileHashing'); const forceRebuild = getInput('forceRebuild'); const ignoreLastBuildOnBranch = getInput('ignoreLastBuildOnBranch'); const logFile = getInput('logFile'); @@ -148,6 +149,7 @@ async function run() { exitOnceUploaded: maybe(exitOnceUploaded, false), exitZeroOnChanges: maybe(exitZeroOnChanges, true), externals: maybe(externals), + fileHashing: maybe(fileHashing, true), forceRebuild: maybe(forceRebuild), ignoreLastBuildOnBranch: maybe(ignoreLastBuildOnBranch), interactive: false, diff --git a/action.yml b/action.yml index 89e935e6a..773571567 100755 --- a/action.yml +++ b/action.yml @@ -47,6 +47,9 @@ inputs: externals: description: 'Disable TurboSnap when any of these files have changed since the baseline build' required: false + fileHashing: + description: 'Whether to apply file hashing to skip uploading unchanged files (default: true)' + required: false forceRebuild: description: 'Do not skip build when a rebuild is detected' required: false