Skip to content
Snippets Groups Projects
Commit 26717731 authored by Pierre Guinoiseau's avatar Pierre Guinoiseau :green_heart:
Browse files

fix: enable the shellcheck and shfmt jobs only when their respective version are defined

parent 0a7f3a72
No related branches found
No related tags found
No related merge requests found
Pipeline #15305557 passed
Loading
Loading
@@ -14,5 +14,6 @@ shellcheck:
https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/shellcheck.md
EOD
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: $GL_ASDF_SHELLCHECK_VERSION
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -17,5 +17,6 @@ shfmt:
https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/shfmt.md
EOD
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: $GL_ASDF_SHFMT_VERSION
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment