Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

fix auto patches again (#65708)

Ryan Laurie0cfcfd561e60
diff --git a/.github/workflows/release-patch.yml b/.github/workflows/release-patch.yml
index e1645f2622f..af97ab0bc5a 100644
--- a/.github/workflows/release-patch.yml
+++ b/.github/workflows/release-patch.yml
@@ -65,6 +65,10 @@ jobs:
majorVersion: Number(majorVersion),
});
+ console.log(
+ { nextPatch, releaseCommit, hasBeenReleased }
+ );
+
if (nextPatch && releaseCommit && !hasBeenReleased) {
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
@@ -76,11 +80,8 @@ jobs:
version: nextPatch,
auto: true,
}
- });
+ }).catch(console.error);
} else {
- console.log(
- { nextPatch, releaseCommit, hasBeenReleased }
- );
console.error(`No new patch version or no green commit found for v${majorVersion}`);
}
}
@@ -103,5 +104,5 @@ jobs:
await releasePatchFor(inputVersion, isValidOverride ? overrideSha : undefined);
} else { // scheduled release of AUTO_RELEASE_VERSIONS
- await Promise.all(AUTO_RELEASE_VERSIONS.map(releasePatchFor));
+ await Promise.all(AUTO_RELEASE_VERSIONS.map(version => releasePatchFor(version)));
}