Unverified Commit ff15f030 authored by Josh Gross's avatar Josh Gross Committed by GitHub
Browse files

Merge pull request #609 from actions/joshmgross/fix-include-hidden-files-input-node16

Ensure hidden files input is used
parents 9ee08a3b 87b9624c
Loading
Loading
Loading
Loading
+1 −1
Changes for dist/index.js: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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) {
+4 −1
Changes for src/upload-artifact.ts: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -7,7 +7,10 @@ import {NoFileOptions} from './constants'
async function run(): Promise<void> {
  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) {