mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-21 23:05:46 +00:00
ci(release): unify GitHub release title format across channels (#359)
Use a single release title pattern (`Psysonic v<version>`) for both RC and stable releases, while keeping prerelease/draft flags unchanged.
This commit is contained in:
@@ -107,7 +107,6 @@ jobs:
|
|||||||
CHANGELOG_BODY: ${{ steps.changelog.outputs.body }}
|
CHANGELOG_BODY: ${{ steps.changelog.outputs.body }}
|
||||||
IS_PRERELEASE: ${{ inputs.prerelease }}
|
IS_PRERELEASE: ${{ inputs.prerelease }}
|
||||||
IS_DRAFT: ${{ inputs.draft_release }}
|
IS_DRAFT: ${{ inputs.draft_release }}
|
||||||
CHANNEL: ${{ inputs.channel }}
|
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const tag = process.env.RELEASE_TAG;
|
const tag = process.env.RELEASE_TAG;
|
||||||
@@ -115,9 +114,7 @@ jobs:
|
|||||||
const prerelease = process.env.IS_PRERELEASE === "true";
|
const prerelease = process.env.IS_PRERELEASE === "true";
|
||||||
const draft = process.env.IS_DRAFT === "true";
|
const draft = process.env.IS_DRAFT === "true";
|
||||||
const version = process.env.PACKAGE_VERSION;
|
const version = process.env.PACKAGE_VERSION;
|
||||||
const channel = process.env.CHANNEL;
|
const name = `Psysonic v${version}`;
|
||||||
const titleSuffix = prerelease ? ` RC (${channel})` : "";
|
|
||||||
const name = `Psysonic v${version}${titleSuffix}`;
|
|
||||||
try {
|
try {
|
||||||
const { data } = await github.rest.repos.getReleaseByTag({
|
const { data } = await github.rest.repos.getReleaseByTag({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
|
|||||||
Reference in New Issue
Block a user