chore: always try to nuke tags (#16452)
This commit is contained in:
parent
03e051cfbb
commit
95c73eebb2
1 changed files with 6 additions and 0 deletions
|
@ -102,6 +102,7 @@ async function cleanReleaseArtifacts () {
|
||||||
if (releaseId) {
|
if (releaseId) {
|
||||||
if (isNightly) {
|
if (isNightly) {
|
||||||
const deletedNightlyDraft = await deleteDraft(releaseId, 'nightlies')
|
const deletedNightlyDraft = await deleteDraft(releaseId, 'nightlies')
|
||||||
|
|
||||||
// don't delete tag unless draft deleted successfully
|
// don't delete tag unless draft deleted successfully
|
||||||
if (deletedNightlyDraft) {
|
if (deletedNightlyDraft) {
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
|
@ -116,6 +117,11 @@ async function cleanReleaseArtifacts () {
|
||||||
await deleteTag(args.tag, 'electron')
|
await deleteTag(args.tag, 'electron')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
await Promise.all([
|
||||||
|
deleteTag(args.tag, 'electron'),
|
||||||
|
deleteTag(args.tag, 'nightlies')
|
||||||
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(`${pass} failed release artifact cleanup complete`)
|
console.log(`${pass} failed release artifact cleanup complete`)
|
||||||
|
|
Loading…
Reference in a new issue