mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-21 06:33:28 +00:00
Ensure not marking successful releases as canceled
Resolves: #1178 Change-type: patch Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
This commit is contained in:
parent
e9e15dbbe3
commit
1ee51ca9a7
@ -204,6 +204,11 @@ async function cancelBuildIfNecessary(build: RemoteBuild): Promise<void> {
|
||||
await build.sdk.pine.patch({
|
||||
resource: 'release',
|
||||
id: build.releaseId,
|
||||
options: {
|
||||
$filter: {
|
||||
status: { $ne: 'success' },
|
||||
},
|
||||
},
|
||||
body: {
|
||||
status: 'cancelled',
|
||||
end_timestamp: Date.now(),
|
||||
|
Loading…
Reference in New Issue
Block a user