Skip to content

Commit

Permalink
Mettre à jour le workflow Kubelinter pour échouer en cas de lignes da…
Browse files Browse the repository at this point in the history
…ns le rapport kube-linter
  • Loading branch information
AlxFrst committed Apr 18, 2024
1 parent 9b24152 commit e528342
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/kubelinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:
name: kube-linter-report
path: kube-linter-report.txt

- name: Fail if there are linting errors
- name: Fail if the kube-linter report contains lines
run: |
if grep -q "error" kube-linter-report.txt; then
echo "Linting errors found"
if grep -q . kube-linter-report.txt; then
echo "kube-linter found issues in the repository"
exit 1
fi

0 comments on commit e528342

Please sign in to comment.