Skip to content

Commit b5b27cb

Browse files
committed
attempt to separate security releases from experimental musl releases
1 parent a12f482 commit b5b27cb

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

build-automation.mjs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,17 @@ export default async function(github) {
8888
const newVersions = await checkForMuslVersionsAndSecurityReleases(github, versions);
8989
let updatedVersions = [];
9090
for (const [version, newVersion] of Object.entries(newVersions)) {
91-
if (newVersion.muslBuildExists) {
92-
const { stdout } = await exec(`./update.sh ${newVersion.isSecurityRelease ? "-s " : ""}${version}`);
91+
if (newVersion.isSecurityRelease) {
92+
console.log(`Processing security release ${newVersion.fullVersion}`);
93+
const { stdout } = await exec(`./update.sh -s ${version}`);
94+
console.log(stdout);
95+
updatedVersions.push(newVersion.fullVersion);
96+
} else if (newVersion.muslBuildExists) {
97+
const { stdout } = await exec(`./update.sh ${version}`);
9398
console.log(stdout);
9499
updatedVersions.push(newVersion.fullVersion);
95100
} else {
96-
console.log(`There's no musl build for version ${newVersion.fullVersion} yet.`);
97-
process.exit(0);
101+
console.log(`There's no musl build for version ${newVersion.fullVersion} yet. Skipping non-security release.`);
98102
}
99103
}
100104
const { stdout } = (await exec(`git diff`));

0 commit comments

Comments
 (0)