From fde64b99dfd82427d80361d8370dc56f114fb19b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Guilherme=20Vanz?= Date: Wed, 13 Mar 2024 10:30:55 -0300 Subject: [PATCH] fix(ci): set prerelease and latest flag properly. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The release.yml is not properly setting the release as prerelease or latest release because the field used to check if the tag is a prerelease was not populated. This commit fixes that using another field. Signed-off-by: José Guilherme Vanz --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d68be8a4..75d600e6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -119,6 +119,7 @@ jobs: script: | const {RELEASE_ID} = process.env const {TAG_NAME} = process.env + let IS_PRERELEASE = `${{ contains(github.ref_name, '-alpha') || contains(github.ref_name, '-beta') || contains(github.ref_name, '-rc') }}` github.rest.repos.updateRelease({ owner: context.repo.owner, repo: context.repo.repo, @@ -126,7 +127,8 @@ jobs: draft: false, tag_name: `${TAG_NAME}`, name: `${TAG_NAME}`, - prerelease: `${{ contains(github.event.workflow_run.head_branch, '-alpha') || contains(github.event.workflow_run.head_branch, '-beta') || contains(github.event.workflow_run.head_branch, '-rc') }}` + prerelease: `${IS_PRERELEASE}`, + make_latest: !`${IS_PRERELEASE}` }); - name: Trigger chart update