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

Merge branch 'pguinoiseau/fix-shfmt-shellcheck-rules' into 'main'

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

See merge request gitlab-com/gl-infra/common-ci-tasks!202
parents 293fcb2b c66f073b
No related branches found
No related tags found
No related merge requests found
Pipeline #15308279 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