mark pre-release when '-rc' in tag
This commit is contained in:
3
.github/workflows/create-release.yaml
vendored
3
.github/workflows/create-release.yaml
vendored
@@ -39,6 +39,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github-token: "${{ secrets.ACTIONS_ACCESS_TOKEN }}"
|
github-token: "${{ secrets.ACTIONS_ACCESS_TOKEN }}"
|
||||||
script: |
|
script: |
|
||||||
|
const isPreRelease = '${{ inputs.RELEASE_TAG }}'.includes('-rc');
|
||||||
try {
|
try {
|
||||||
const response = await github.rest.repos.createRelease({
|
const response = await github.rest.repos.createRelease({
|
||||||
draft: false,
|
draft: false,
|
||||||
@@ -47,7 +48,7 @@ jobs:
|
|||||||
name: '${{ inputs.RELEASE_TAG }}',
|
name: '${{ inputs.RELEASE_TAG }}',
|
||||||
target_commitish: 'release-${{ inputs.RELEASE_TAG }}',
|
target_commitish: 'release-${{ inputs.RELEASE_TAG }}',
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
prerelease: false,
|
prerelease: isPreRelease,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
tag_name: '${{ inputs.RELEASE_TAG }}',
|
tag_name: '${{ inputs.RELEASE_TAG }}',
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user