mirror of
https://github.com/actions/upload-artifact.git
synced 2026-04-16 16:25:43 +00:00
Merge 60f4f0971b into 043fb46d1a
This commit is contained in:
commit
322b0bf232
3 changed files with 43 additions and 2 deletions
12
dist/upload/index.js
vendored
12
dist/upload/index.js
vendored
|
|
@ -130605,7 +130605,17 @@ async function run() {
|
|||
return;
|
||||
}
|
||||
if (inputs.overwrite) {
|
||||
await deleteArtifactIfExists(inputs.artifactName);
|
||||
if (!inputs.archive) {
|
||||
if (searchResult.filesToUpload.length > 0) {
|
||||
const fileName = searchResult.filesToUpload[0].split('/').pop();
|
||||
if (fileName) {
|
||||
deleteArtifactIfExists(fileName);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
await deleteArtifactIfExists(inputs.artifactName);
|
||||
}
|
||||
}
|
||||
const options = {};
|
||||
if (inputs.retentionDays) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue