mirror of
https://gitea.com/actions/upload-artifact.git
synced 2025-04-22 16:55:32 +08:00
PR feedback
This commit is contained in:
parent
64bec0d86c
commit
3b27c9ca28
8
dist/index.js
vendored
8
dist/index.js
vendored
@ -6307,12 +6307,12 @@ function findFilesToUpload(searchPath, globOptions) {
|
||||
core_1.debug(`File:${searchResult} was found using the provided searchPath`);
|
||||
searchResults.push(searchResult);
|
||||
// detect any files that would be overwritten because of case insensitivity
|
||||
const currentSetSize = set.size;
|
||||
set.add(searchResult.toLowerCase());
|
||||
if (currentSetSize === set.size) {
|
||||
// set size has not changed which means paths can be overwritten
|
||||
if (set.has(searchResult.toLowerCase())) {
|
||||
core_1.info(`Uploads are case insensitive: ${searchResult} was detected that it will be overwritten by another file with the same path`);
|
||||
}
|
||||
else {
|
||||
set.add(searchResult.toLowerCase());
|
||||
}
|
||||
}
|
||||
else {
|
||||
core_1.debug(`Removing ${searchResult} from rawSearchResults because it is a directory`);
|
||||
|
@ -107,13 +107,12 @@ export async function findFilesToUpload(
|
||||
searchResults.push(searchResult)
|
||||
|
||||
// detect any files that would be overwritten because of case insensitivity
|
||||
const currentSetSize = set.size
|
||||
set.add(searchResult.toLowerCase())
|
||||
if (currentSetSize === set.size) {
|
||||
// set size has not changed which means paths can be overwritten
|
||||
if (set.has(searchResult.toLowerCase())) {
|
||||
info(
|
||||
`Uploads are case insensitive: ${searchResult} was detected that it will be overwritten by another file with the same path`
|
||||
)
|
||||
} else {
|
||||
set.add(searchResult.toLowerCase())
|
||||
}
|
||||
} else {
|
||||
debug(
|
||||
|
Loading…
x
Reference in New Issue
Block a user