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