Skip to content

Commit c7fe44d

Browse files
committed
Block removed maestro versions 1.39.2, 1.39.7 and 2.0.3 with a hard error
1 parent 5751d95 commit c7fe44d

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,13 @@ const run = async (): Promise<void> => {
159159
githubContext,
160160
} = await getParameters();
161161

162-
const DEPRECATED_MAESTRO_VERSIONS = ['1.39.2', '1.39.7'];
163-
if (maestroVersion && DEPRECATED_MAESTRO_VERSIONS.includes(maestroVersion)) {
164-
warning(
165-
`Maestro version ${maestroVersion} is deprecated and will be removed soon. ` +
162+
const REMOVED_MAESTRO_VERSIONS = ['1.39.2', '1.39.7', '2.0.3'];
163+
if (maestroVersion && REMOVED_MAESTRO_VERSIONS.includes(maestroVersion)) {
164+
setFailed(
165+
`Maestro version ${maestroVersion} is no longer supported. ` +
166166
`Please upgrade to a newer version. See: https://docs.devicecloud.dev/reference/maestro-versions`
167167
);
168+
return;
168169
}
169170

170171
const dcdVersionString = await getLatestDcdVersion(useBeta);

0 commit comments

Comments
 (0)