diff --git a/.github/workflows/automatic-updates.yml b/.github/workflows/automatic-updates.yml index 279f09004..cf0b4b915 100644 --- a/.github/workflows/automatic-updates.yml +++ b/.github/workflows/automatic-updates.yml @@ -26,6 +26,7 @@ jobs: - name: Create update PR id: cpr + if: steps.updt.outputs.result != '' uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 with: token: ${{ secrets.GH_API_TOKEN }} diff --git a/build-automation.mjs b/build-automation.mjs index 462f83427..eedc2fc5b 100644 --- a/build-automation.mjs +++ b/build-automation.mjs @@ -128,11 +128,16 @@ export default async function (github) { updatedVersions.push(newVersion.fullVersion); } else { console.log( - `There's no musl build for version ${newVersion.fullVersion} yet.`, + `Skipping version ${newVersion.fullVersion} - no musl build available yet.`, ); - process.exit(0); } } + + if (updatedVersions.length === 0) { + console.log('No versions with musl builds were updated.'); + process.exit(0); + } + const { stdout } = await exec(`git diff`); console.log(stdout);