Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing fileHashing option to GitHub Action #918

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions action-src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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,
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading