diff --git a/.github/hooks/pre-commit b/.github/hooks/pre-commit index 9c6fd19..7f4563e 100755 --- a/.github/hooks/pre-commit +++ b/.github/hooks/pre-commit @@ -10,12 +10,12 @@ source ./version # Update chart version if sed --version > /dev/null; then # Using GNU sed (Linux) - sed -i "s/version: .*/version: $VERSION/" helm/promgithub/Chart.yaml - sed -i "s/appVersion: .*/appVersion: \"$VERSION\"/" helm/promgithub/Chart.yaml + sed -i "s/^version: .*/version: $VERSION/" helm/promgithub/Chart.yaml + sed -i "s/^appVersion: .*/appVersion: \"$VERSION\"/" helm/promgithub/Chart.yaml else # Using BSD sed (macOS) - sed -i '' "s/version: .*/version: $VERSION/" helm/promgithub/Chart.yaml - sed -i '' "s/appVersion: .*/appVersion: \"$VERSION\"/" helm/promgithub/Chart.yaml + sed -i '' "s/^version: .*/version: $VERSION/" helm/promgithub/Chart.yaml + sed -i '' "s/^appVersion: .*/appVersion: \"$VERSION\"/" helm/promgithub/Chart.yaml fi # Run go fmt to format the source code diff --git a/helm/promgithub/Chart.yaml b/helm/promgithub/Chart.yaml index e284307..9d99f6d 100644 --- a/helm/promgithub/Chart.yaml +++ b/helm/promgithub/Chart.yaml @@ -13,6 +13,6 @@ appVersion: "0.0.7" dependencies: - name: redis - version: 0.0.7 + version: 23.1.1 repository: "oci://registry-1.docker.io/bitnamicharts" condition: redis.enabled