mirror of
https://github.com/actions/upload-artifact.git
synced 2025-06-15 00:07:12 +02:00
Compare commits
2 Commits
v3/node16
...
v3.2.0-nod
Author | SHA1 | Date | |
---|---|---|---|
672174a5ba | |||
97a0fba137 |
@ -29,5 +29,5 @@ inputs:
|
|||||||
If false, hidden files will be excluded from the uploaded artifact.
|
If false, hidden files will be excluded from the uploaded artifact.
|
||||||
default: 'false'
|
default: 'false'
|
||||||
runs:
|
runs:
|
||||||
using: 'node16'
|
using: 'node20'
|
||||||
main: 'dist/index.js'
|
main: 'dist/index.js'
|
||||||
|
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -11091,7 +11091,7 @@ function run() {
|
|||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
try {
|
try {
|
||||||
const inputs = (0, input_helper_1.getInputs)();
|
const inputs = (0, input_helper_1.getInputs)();
|
||||||
const searchResult = yield (0, search_1.findFilesToUpload)(inputs.searchPath, inputs.includeHiddenFiles);
|
const searchResult = yield (0, search_1.findFilesToUpload)(inputs.searchPath);
|
||||||
if (searchResult.filesToUpload.length === 0) {
|
if (searchResult.filesToUpload.length === 0) {
|
||||||
// No files were found, different use cases warrant different types of behavior if nothing is found
|
// No files were found, different use cases warrant different types of behavior if nothing is found
|
||||||
switch (inputs.ifNoFilesFound) {
|
switch (inputs.ifNoFilesFound) {
|
||||||
|
@ -7,10 +7,7 @@ import {NoFileOptions} from './constants'
|
|||||||
async function run(): Promise<void> {
|
async function run(): Promise<void> {
|
||||||
try {
|
try {
|
||||||
const inputs = getInputs()
|
const inputs = getInputs()
|
||||||
const searchResult = await findFilesToUpload(
|
const searchResult = await findFilesToUpload(inputs.searchPath)
|
||||||
inputs.searchPath,
|
|
||||||
inputs.includeHiddenFiles
|
|
||||||
)
|
|
||||||
if (searchResult.filesToUpload.length === 0) {
|
if (searchResult.filesToUpload.length === 0) {
|
||||||
// No files were found, different use cases warrant different types of behavior if nothing is found
|
// No files were found, different use cases warrant different types of behavior if nothing is found
|
||||||
switch (inputs.ifNoFilesFound) {
|
switch (inputs.ifNoFilesFound) {
|
||||||
|
Reference in New Issue
Block a user