Skip to content

Commit c68aab0

Browse files
committed
add skip check
Signed-off-by: Harta Angkasa <[email protected]>
1 parent e672098 commit c68aab0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build-automation.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ const checkIfThereAreNewVersions = async (github) => {
2020
const baseVersions = stdout.trim().split("\n");
2121

2222
const standardVersion = baseVersions.find(v => !v.startsWith("alpine"));
23-
const { stdout: standardVersionOutput } = await exec(`. ./functions.sh && get_full_version ./${supportedVersion}/${standardVersion}`, { shell: "bash" });
24-
2523
const alpineVersion = baseVersions.find(v => v.startsWith("alpine"));
24+
//skip if no base version found
25+
if (!standardVersion || !alpineVersion) {
26+
continue;
27+
}
28+
29+
const { stdout: standardVersionOutput } = await exec(`. ./functions.sh && get_full_version ./${supportedVersion}/${standardVersion}`, { shell: "bash" });
2630
const { stdout: alpineVersionOutput } = await exec(`. ./functions.sh && get_full_version ./${supportedVersion}/${alpineVersion}`, { shell: "bash" });
2731

2832
const fullVersion = { main : standardVersionOutput.trim(), alpine: alpineVersionOutput.trim() };

0 commit comments

Comments
 (0)