Skip to content

Commit

Permalink
🌿 update script to use configVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
aureq committed Aug 17, 2024
1 parent a7e74d4 commit 0a1296a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -eu

CHART_DIR="charts/cert-manager-webhook-ovh"
SCHEMA_VERSION="0.0.1"
CONFIG_VERSION="0.0.1"

COMMITS_TO_PUSH="$(git log --oneline -- "origin..HEAD" | awk 'END { print NR }')"

Expand All @@ -26,9 +26,9 @@ fi
if [ -d "$CHART_DIR" ]; then
echo -n "Linting Chart $CHART_DIR: "
# check for helm syntax problems
helm lint "$CHART_DIR" --set "schemaVersion=${SCHEMA_VERSION}" >/dev/null 2>&1 || exit 1
helm lint "$CHART_DIR" --set "configVersion=${CONFIG_VERSION}" >/dev/null 2>&1 || exit 1
# check for any error returned by the chart itself
helm lint "$CHART_DIR" --set "schemaVersion=${SCHEMA_VERSION}" 2>&1 >/dev/null | grep -i 'error' >/dev/null && exit 1
helm lint "$CHART_DIR" --set "configVersion=${CONFIG_VERSION}" 2>&1 >/dev/null | grep -i 'error' >/dev/null && exit 1
echo "passed."
else
echo "Missing '$CHART_DIR'"
Expand Down

0 comments on commit 0a1296a

Please sign in to comment.