diff --git a/templates/full-pipeline.yml b/templates/full-pipeline.yml index 9a37e7a3b862c5784a5a2c8dc9a6d30c03f51ecf..c8ca510082e95dcee81c3fae4593fd3147cc08aa 100644 --- a/templates/full-pipeline.yml +++ b/templates/full-pipeline.yml @@ -145,13 +145,13 @@ spec: destroy_rules: default: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - - when: manual + when: manual type: array description: 'Defines the `rules` of the `destroy` job.' delete_state_rules: default: - - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' - - when: manual + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + when: manual type: array description: 'Defines the `rules` of the `delete-state` job.' warning_on_non_empty_plan: diff --git a/templates/validate-plan-destroy.yml b/templates/validate-plan-destroy.yml index 8168b750e81abbf914f48eb358e31363d7c3883a..f2cc9228f86efce4aa7ba29289ba9c86cee7cef1 100644 --- a/templates/validate-plan-destroy.yml +++ b/templates/validate-plan-destroy.yml @@ -118,13 +118,13 @@ spec: destroy_rules: default: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - - when: manual + when: manual type: array description: 'Defines the `rules` of the `destroy` job.' delete_state_rules: default: - - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' - - when: manual + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + when: manual type: array description: 'Defines the `rules` of the `delete-state` job.' warning_on_non_empty_plan: