This commit is contained in:
Kazuto Iris 2026-04-12 17:50:11 +08:00 committed by GitHub
commit 322b0bf232
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 43 additions and 2 deletions

12
dist/upload/index.js vendored
View file

@ -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) {