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

fix: Fix rules for shellcheck and shfmt jobs for when the version variable is not defined

parent 293fcb2b
No related branches found
No related tags found
No related merge requests found
Pipeline #15308256 passed
Loading
Loading
@@ -14,6 +14,7 @@ shellcheck:
https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/shellcheck.md
EOD
rules:
- if: $GL_ASDF_SHELLCHECK_VERSION
- if: $GL_ASDF_SHELLCHECK_VERSION == null || $GL_ASDF_SHELLCHECK_VERSION == ""
when: never
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Loading
Loading
@@ -17,6 +17,7 @@ shfmt:
https://gitlab.com/gitlab-com/gl-infra/common-ci-tasks/-/blob/main/shfmt.md
EOD
rules:
- if: $GL_ASDF_SHFMT_VERSION
- if: $GL_ASDF_SHFMT_VERSION == null || $GL_ASDF_SHFMT_VERSION == ""
when: never
- 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