Skip to content

Commit

Permalink
[CI] Run shellcheck on custom lint file (prometheus-community#4072)
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Martinez <gabrielmartinez@sisti.pt>
Signed-off-by: Sacha <sacha.smart@gmail.com>
  • Loading branch information
GMartinez-Sisti authored and sachasmart committed Dec 14, 2023
1 parent 81d3792 commit 6b9d118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/linters/ct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ excluded-charts:
# If not running on GCE, will error: "Failed to get GCE config"
- prometheus-to-sd
additional-commands:
- sh -c "if [ -f '{{ .Path }}/ci/lint.sh' ]; then exec bash '{{ .Path }}/ci/lint.sh'; fi"
- sh -ec "if [ -f '{{ .Path }}/ci/lint.sh' ]; then shellcheck '{{ .Path }}/ci/lint.sh'; bash '{{ .Path }}/ci/lint.sh'; fi"
# - helm unittest --helm3 --strict --file unittests/*.yaml --file 'unittests/**/*.yaml' {{ .Path }}

0 comments on commit 6b9d118

Please sign in to comment.