diff --git a/lib/utils/remote-build.ts b/lib/utils/remote-build.ts index c4c4fa4a..c7035404 100644 --- a/lib/utils/remote-build.ts +++ b/lib/utils/remote-build.ts @@ -204,6 +204,11 @@ async function cancelBuildIfNecessary(build: RemoteBuild): Promise { await build.sdk.pine.patch({ resource: 'release', id: build.releaseId, + options: { + $filter: { + status: { $ne: 'success' }, + }, + }, body: { status: 'cancelled', end_timestamp: Date.now(),