From 87b9624c21f1a58b735ab075e049d9dabdae4782 Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Mon, 2 Sep 2024 12:34:51 -0400 Subject: [PATCH] Ensure hidden files input is used --- dist/index.js | 2 +- src/upload-artifact.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 8986a1d..b1b4b94 100644 --- a/dist/index.js +++ b/dist/index.js @@ -11091,7 +11091,7 @@ function run() { return __awaiter(this, void 0, void 0, function* () { try { const inputs = (0, input_helper_1.getInputs)(); - const searchResult = yield (0, search_1.findFilesToUpload)(inputs.searchPath); + const searchResult = yield (0, search_1.findFilesToUpload)(inputs.searchPath, inputs.includeHiddenFiles); if (searchResult.filesToUpload.length === 0) { // No files were found, different use cases warrant different types of behavior if nothing is found switch (inputs.ifNoFilesFound) { diff --git a/src/upload-artifact.ts b/src/upload-artifact.ts index 44c74bf..7ecd60b 100644 --- a/src/upload-artifact.ts +++ b/src/upload-artifact.ts @@ -7,7 +7,10 @@ import {NoFileOptions} from './constants' async function run(): Promise { try { const inputs = getInputs() - const searchResult = await findFilesToUpload(inputs.searchPath) + const searchResult = await findFilesToUpload( + inputs.searchPath, + inputs.includeHiddenFiles + ) if (searchResult.filesToUpload.length === 0) { // No files were found, different use cases warrant different types of behavior if nothing is found switch (inputs.ifNoFilesFound) {