Skip to content

Commit a9a3e2c

Browse files
fix(release): Set HELM_CHART_VERSION instead of HELM_VERSION
1 parent 427e055 commit a9a3e2c

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
echo "Version('$VERSION') and Makefile version('$MAKE_VERSION') don't match!"
3636
exit 1;
3737
fi
38-
38+
3939
RELEASE_ARGS=release
4040
RELEASE_HEADER_TMPL=docs/releases/RELEASE_${VERSION}_HEADER.md.gotmpl
4141
RELEASE_FOOTER_TMPL=docs/releases/RELEASE_${VERSION}_FOOTER.md.gotmpl
@@ -49,7 +49,7 @@ jobs:
4949
else
5050
RELEASE_ARGS="${RELEASE_ARGS} --release-footer-tmpl=docs/releases/RELEASE_FOOTER.md.gotmpl"
5151
fi
52-
52+
5353
echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
5454
echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
5555
echo "RELEASE_ARGS=${RELEASE_ARGS}" >> $GITHUB_OUTPUT
@@ -97,12 +97,12 @@ jobs:
9797
org.opencontainers.image.revision=${{ github.sha }}
9898
org.opencontainers.image.version=${{ needs.args.outputs.VERSION }}
9999
org.opencontainers.image.created=${{ needs.args.outputs.BUILD_DATE }}
100-
100+
101101
goreleaser:
102102
name: Goreleaser
103103
runs-on: ubuntu-latest
104104
needs:
105-
- args
105+
- args
106106
- release
107107
steps:
108108
- name: Checkout
@@ -115,7 +115,7 @@ jobs:
115115

116116
- name: Set GORELEASER_PREVIOUS_TAG
117117
run: echo "GORELEASER_PREVIOUS_TAG=$(git tag -l --sort=-version:refname | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | head -n 2 | tail -n 1)" >> $GITHUB_ENV
118-
118+
119119
- name: GoReleaser
120120
uses: goreleaser/goreleaser-action@v6
121121
with:
@@ -127,7 +127,7 @@ jobs:
127127
helm:
128128
name: Helm
129129
runs-on: ubuntu-latest
130-
needs:
130+
needs:
131131
- args
132132
- goreleaser
133133
steps:
@@ -146,9 +146,9 @@ jobs:
146146
- name: Bump version
147147
id: version
148148
env:
149-
HELM_VERSION: ${{ needs.args.outputs.VERSION }}
149+
HELM_CHART_VERSION: ${{ needs.args.outputs.VERSION }}
150150
run: make helm-version-bump
151-
151+
152152
- name: Helm generate
153153
run: make helm-gen
154154

@@ -161,7 +161,7 @@ jobs:
161161
gopkg:
162162
name: Go package
163163
runs-on: ubuntu-latest
164-
needs:
164+
needs:
165165
- args
166166
- helm
167167
steps:
@@ -180,4 +180,5 @@ jobs:
180180
- name: Push Go package compatible tag
181181
run: |
182182
git tag "v${{ needs.args.outputs.VERSION }}"
183-
git push --tags
183+
git push --tags
184+

0 commit comments

Comments
 (0)