@@ -53,19 +53,19 @@ jobs:
5353 run : |
5454 helm repo add cattage https://cybozu-go.github.io/cattage
5555 helm repo update
56-
56+
5757 # get the release tag version
5858 tag_version=${GITHUB_REF##*/v}
59-
59+
6060 # get the latest chart version
6161 chart_version=$(helm search repo cattage -o json | jq -r 'sort_by(.version) | .[-1].version')
6262 chart_patch_version=${chart_version##*.}
6363 new_patch_version=$(($chart_patch_version+1))
64-
64+
6565 # if minor or major version changed, reset new patch version
6666 local_version=$(cat charts/cattage/Chart.yaml | yq .version | sed "s/0-chart-patch-version-placeholder/$chart_patch_version/g")
6767 [ "$local_version" != "$chart_version" ] && new_patch_version=0
68-
68+
6969 # replace placeholder with new version
7070 sed --in-place "s/app-version-placeholder/$tag_version/g" charts/cattage/Chart.yaml
7171 sed --in-place "s/0-chart-patch-version-placeholder/$new_patch_version/g" charts/cattage/Chart.yaml
@@ -75,14 +75,14 @@ jobs:
7575 tag_version=${GITHUB_REF##*/}
7676 cat <<EOF > ./charts/cattage/RELEASE.md
7777 Helm chart for cattage [$tag_version](https://github.com/cybozu-go/cattage/releases/tag/$tag_version)
78-
78+
7979 EOF
8080 - name : Configure Git
8181 run : |
8282 git config user.name "$GITHUB_ACTOR"
8383 git config user.email "[email protected] " 8484 - name : Run chart-releaser
85- uses : helm/chart-releaser-action@be16258da8010256c6e82849661221415f031968 # v1.5 .0
85+ uses : helm/chart-releaser-action@cae68fefc6b5f367a0275617c9f83181ba54714f # v1.7 .0
8686 with :
8787 config : cr.yaml
8888 env :
0 commit comments