Skip to content

Commit f662ce8

Browse files
Madhu-1mergify[bot]
authored andcommitted
ci: use tag name instead of GIT_REF
The stable release publish was triggered by the release: published event, which intermittently delivers an empty github.ref (actions/runner#2788). using github.event.release.tag_name instead, as this is the preferred method for referencing the tag name of a release. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com> (cherry picked from commit f21d71c)
1 parent cd6c1a6 commit f662ce8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/publish-helm-charts.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222

2323
- name: Set release version
2424
id: release_version
25-
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
25+
run: echo "VERSION=${TAG_NAME#v}" >> $GITHUB_ENV
26+
env:
27+
TAG_NAME: ${{ github.event.release.tag_name }}
2628

2729

2830
- name: Install helm

0 commit comments

Comments
 (0)