Merge branch 'main' into renovate/ghcr.io-linuxserver-lidarr
Some checks failed
Lint on PR / Lint YAML files (pull_request) Failing after 5s
Some checks failed
Lint on PR / Lint YAML files (pull_request) Failing after 5s
This commit is contained in:
commit
348e682841
1 changed files with 5 additions and 4 deletions
|
@ -21,10 +21,11 @@ jobs:
|
||||||
|
|
||||||
- name: Lint .yml files
|
- name: Lint .yml files
|
||||||
run: |
|
run: |
|
||||||
lint_output=$(find docker -name "*.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} \;)
|
lint_output=$(find docker -name "*.yml" -exec yamllint --strict -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} \;)
|
||||||
|
|
||||||
# Check if there are any issues
|
# Check if there are any warnings or errors in the output
|
||||||
if [[ -n "$lint_output" ]]; then
|
echo "$lint_output"
|
||||||
echo "$lint_output"
|
if echo "$lint_output" | grep -q -E "error|warning"; then
|
||||||
|
echo "YAML linting failed due to errors or warnings."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue