diff --git a/templates/apply.yml b/templates/apply.yml index fc1546fed377580c24381adda14ed34262fece95..adaec3773afaa46bd6bb04850404c6a0f75fc8be 100644 --- a/templates/apply.yml +++ b/templates/apply.yml @@ -92,7 +92,7 @@ spec: # FIXME: eventually, we'll want to define `null` as the default, # but this is NOT support yet, see # https://gitlab.com/gitlab-org/gitlab/-/issues/440468 - default: [] + default: [{when: on_success}] type: array description: 'Defines the `rules` of the job.' diff --git a/templates/delete-state.yml b/templates/delete-state.yml index d3f0c97f2156a8573ca93463340effb5ac906090..3305cc68653af3e5c9cc6403633f0e50b043690b 100644 --- a/templates/delete-state.yml +++ b/templates/delete-state.yml @@ -19,7 +19,7 @@ spec: # FIXME: eventually, we'll want to define `null` as the default, # but this is NOT support yet, see # https://gitlab.com/gitlab-org/gitlab/-/issues/440468 - default: [] + default: [{when: on_success}] type: array description: 'Defines the `rules` of the job.' diff --git a/templates/destroy.yml b/templates/destroy.yml index bc1897756208a944932272e8cec18b544d12618c..4519979daaa170364c408f3b9681a056c0890509 100644 --- a/templates/destroy.yml +++ b/templates/destroy.yml @@ -92,7 +92,7 @@ spec: # FIXME: eventually, we'll want to define `null` as the default, # but this is NOT support yet, see # https://gitlab.com/gitlab-org/gitlab/-/issues/440468 - default: [] + default: [{when: on_success}] type: array description: 'Defines the `rules` of the job.' diff --git a/templates/fmt.yml b/templates/fmt.yml index afaf8acbffca01c8a1c2915aae9519d3e00cda1b..cba5d838054b8f39658515baac3f350783a40919 100644 --- a/templates/fmt.yml +++ b/templates/fmt.yml @@ -88,7 +88,7 @@ spec: # FIXME: eventually, we'll want to define `null` as the default, # but this is NOT support yet, see # https://gitlab.com/gitlab-org/gitlab/-/issues/440468 - default: [] + default: [{when: on_success}] type: array description: 'Defines the `rules` of the job.' diff --git a/templates/plan.yml b/templates/plan.yml index 33972b587846282ba41cf933e9001ab1fcf763da..9987fcd660cff0eb1ada40b154a6162c7d3579d0 100644 --- a/templates/plan.yml +++ b/templates/plan.yml @@ -91,7 +91,7 @@ spec: # FIXME: eventually, we'll want to define `null` as the default, # but this is NOT support yet, see # https://gitlab.com/gitlab-org/gitlab/-/issues/440468 - default: [] + default: [{when: on_success}] type: array description: 'Defines the `rules` of the job.' diff --git a/templates/test.yml b/templates/test.yml index 729acea15074f423afa6a3b85ab6969085b2d544..19786691e493cf613b0f62577667bda7aa8edce3 100644 --- a/templates/test.yml +++ b/templates/test.yml @@ -88,7 +88,7 @@ spec: # FIXME: eventually, we'll want to define `null` as the default, # but this is NOT support yet, see # https://gitlab.com/gitlab-org/gitlab/-/issues/440468 - default: [] + default: [{when: on_success}] type: array description: 'Defines the `rules` of the job.' diff --git a/templates/validate.yml b/templates/validate.yml index fdb431c7ded06e7bbeafa211c6e8a9e96aaff235..22b1ab535e34a6ac4569ac26eaf8517ceccaa4fb 100644 --- a/templates/validate.yml +++ b/templates/validate.yml @@ -84,7 +84,7 @@ spec: # FIXME: eventually, we'll want to define `null` as the default, # but this is NOT support yet, see # https://gitlab.com/gitlab-org/gitlab/-/issues/440468 - default: [] + default: [{when: on_success}] type: array description: 'Defines the `rules` of the job.'