Skip to content

Commit

Permalink
Mettre à jour le workflow Kubelinter pour échouer en cas d'erreurs de…
Browse files Browse the repository at this point in the history
… linting
  • Loading branch information
AlxFrst committed Apr 18, 2024
1 parent 698baf1 commit 9b24152
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/kubelinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,11 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: kube-linter-report
path: kube-linter-report.txt
path: kube-linter-report.txt

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

0 comments on commit 9b24152

Please sign in to comment.