Skip to content

Commit

Permalink
Fail the workflow if linting finds issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
bboerst committed Sep 10, 2023
1 parent 9ab2379 commit 1492a91
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/lint-changed-charts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ for FILE in $CHANGED_FILES; do
# Navigate to the chart directory and run helm lint
helm lint "$DIR"

if [ $? -ne 0 ]; then
echo "Helm lint found issues in the chart at $DIR. Failing the workflow..."
exit 1
fi

# Set the flag to true as a Chart.yaml file was changed
CHART_YAML_CHANGED=true
fi
Expand Down

0 comments on commit 1492a91

Please sign in to comment.