mark pre-release when '-rc' in tag

This commit is contained in:
Syed Ali Shahbaz
2023-11-09 11:44:24 +04:00
committed by GitHub
parent 49bc08e485
commit ae2d7fbd6a

View File

@@ -39,6 +39,7 @@ jobs:
with:
github-token: "${{ secrets.ACTIONS_ACCESS_TOKEN }}"
script: |
const isPreRelease = '${{ inputs.RELEASE_TAG }}'.includes('-rc');
try {
const response = await github.rest.repos.createRelease({
draft: false,
@@ -47,7 +48,7 @@ jobs:
name: '${{ inputs.RELEASE_TAG }}',
target_commitish: 'release-${{ inputs.RELEASE_TAG }}',
owner: context.repo.owner,
prerelease: false,
prerelease: isPreRelease,
repo: context.repo.repo,
tag_name: '${{ inputs.RELEASE_TAG }}',
});