mirror of
https://code.forgejo.org/actions/upload-artifact.git
synced 2025-05-21 00:14:50 +00:00
add follow symbolic links options
This commit is contained in:
parent
ef09cdac3e
commit
264caab452
10 changed files with 133 additions and 7 deletions
7
dist/merge/index.js
vendored
7
dist/merge/index.js
vendored
|
@ -129675,7 +129675,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|||
});
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.findFilesToUpload = void 0;
|
||||
exports.findFilesToUpload = exports.getGlobOptions = void 0;
|
||||
const glob = __importStar(__nccwpck_require__(28090));
|
||||
const path = __importStar(__nccwpck_require__(71017));
|
||||
const core_1 = __nccwpck_require__(42186);
|
||||
|
@ -129690,6 +129690,10 @@ function getDefaultGlobOptions() {
|
|||
omitBrokenSymbolicLinks: true
|
||||
};
|
||||
}
|
||||
function getGlobOptions(followSymbolicLinks) {
|
||||
return Object.assign({ followSymbolicLinks }, getDefaultGlobOptions());
|
||||
}
|
||||
exports.getGlobOptions = getGlobOptions;
|
||||
/**
|
||||
* If multiple paths are specific, the least common ancestor (LCA) of the search paths is used as
|
||||
* the delimiter to control the directory structure for the artifact. This function returns the LCA
|
||||
|
@ -129746,6 +129750,7 @@ function findFilesToUpload(searchPath, globOptions) {
|
|||
const searchResults = [];
|
||||
const globber = yield glob.create(searchPath, globOptions || getDefaultGlobOptions());
|
||||
const rawSearchResults = yield globber.glob();
|
||||
console.log(rawSearchResults);
|
||||
/*
|
||||
Files are saved with case insensitivity. Uploading both a.txt and A.txt will files to be overwritten
|
||||
Detect any files that could be overwritten for user awareness
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue