From 6c4add64ff1437971b3fd0ebcc95dab81df8510a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Guilherme=20Vanz?= Date: Fri, 21 Jul 2023 11:34:00 -0300 Subject: [PATCH] fix: enable release candidates when required MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updates the release CI to check if the pushed tag has some text indicating a release candidate and set properly the flag to publish the release as final release or a candidate. Signed-off-by: José Guilherme Vanz --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 28e83162..53a5f834 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -134,7 +134,8 @@ jobs: release_id: `${RELEASE_ID}`, draft: false, tag_name: `${TAG_NAME}`, - 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') }}` }); - name: Trigger chart update