fix: accept skipped prerelease announcement
Validate / hacs (push) Failing after 14s
Validate / hassfest (push) Failing after 11s
Validate / frontend (push) Successful in 4m0s
Validate / backend (push) Failing after 5m37s
Validate / smoke (push) Failing after 2m25s
Validate / golden (push) Failing after 2m23s
Validate / performance_smoke (push) Failing after 35m49s

This commit is contained in:
Matysh
2026-08-10 18:18:20 +03:00
parent 37d71d8cbb
commit b0c29fb57f
2 changed files with 14 additions and 2 deletions
+8 -1
View File
@@ -72,6 +72,12 @@ export function verifyReleaseProjection(release, { tag }) {
return release;
}
/** Telegram announcements are deliberately skipped for prereleases. */
export function prereleaseWorkflowSucceeded(label, conclusion) {
return conclusion === 'success'
|| (label === 'Announce release' && conclusion === 'skipped');
}
/**
* Read selected root entries from an ordinary ZIP archive without relying on
* platform-specific `tar`/`unzip` executables. GitHub runners, Git Bash, WSL
@@ -339,7 +345,8 @@ if (invokedDirectly) {
if (state !== last) console.log(`${label}: ${state} ${row.url}`);
last = state;
if (row.status === 'completed') {
if (row.conclusion !== 'success') throw new Error(`${label} concluded ${row.conclusion}: ${row.url}`);
if (!prereleaseWorkflowSucceeded(label, row.conclusion))
throw new Error(`${label} concluded ${row.conclusion}: ${row.url}`);
return row;
}
await sleep(10_000);