Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions bin/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ class ApifyBuilder {
);
}
// I reported that buildNumber should probably not be optional
if (!actorInfo.taggedBuilds?.[defaultBuildTag]?.buildNumber) {
throw new Error(
`[${this.actorName}] No build found for tag "${defaultBuildTag}". ` +
`The first build must be triggered manually on the platform before CI can take over.`,
);
}
const defaultBuildNumber = actorInfo.taggedBuilds![defaultBuildTag].buildNumber!;
const defaultVersionNumber = defaultBuildNumber.match(/(\d+\.\d+)\.\d+/)![1];
console.error(`Default version for ${this.actorName} is ${defaultVersionNumber}`);
Expand Down
Loading