chore: always try to nuke tags (#16452)

This commit is contained in:
trop[bot] 2019-01-18 16:34:48 -08:00 committed by Shelley Vohr
parent 03e051cfbb
commit 95c73eebb2

View file

@ -102,6 +102,7 @@ async function cleanReleaseArtifacts () {
if (releaseId) {
if (isNightly) {
const deletedNightlyDraft = await deleteDraft(releaseId, 'nightlies')
// don't delete tag unless draft deleted successfully
if (deletedNightlyDraft) {
await Promise.all([
@ -116,6 +117,11 @@ async function cleanReleaseArtifacts () {
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`)