Skip to content
Snippets Groups Projects
Commit ad8a0136 authored by Timo Furrer's avatar Timo Furrer
Browse files

Support allow_failure input for fmt job

parent 079e4265
Branches
Tags
No related merge requests found
......@@ -61,7 +61,6 @@ opentofu:use-component-instead-of-template:
- if: $CI_OPEN_MERGE_REQUESTS # Don't add it to a *branch* pipeline if it's already in a merge request pipeline.
when: never
- if: $CI_COMMIT_BRANCH # If there's no open merge request, add it to a *branch* pipeline instead.
#allow_failure: true
allow_failure: true
cache:
key: "$__CACHE_KEY_HACK"
......
......@@ -45,11 +45,10 @@ spec:
default: ${CI_PROJECT_DIR}
description: 'Root directory for the OpenTofu project.'
# FIXME: wait for https://gitlab.com/gitlab-org/gitlab/-/merge_requests/142009
# allow_failure:
# default: true
# type: boolean
# description: 'If the job is allowed to fail or not.'
allow_failure:
default: true
type: boolean
description: 'If the job is allowed to fail or not.'
---
......@@ -61,8 +60,7 @@ spec:
- if: $CI_OPEN_MERGE_REQUESTS # Don't add it to a *branch* pipeline if it's already in a merge request pipeline.
when: never
- if: $CI_COMMIT_BRANCH # If there's no open merge request, add it to a *branch* pipeline instead.
#allow_failure: $[[ inputs.allow_failure ]]
allow_failure: true
allow_failure: $[[ inputs.allow_failure ]]
cache:
key: "$__CACHE_KEY_HACK"
paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment