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:
cucadmuh
2026-04-29 11:13:17 +03:00
committed by GitHub
parent 14c66da087
commit e15ca83bd5
@@ -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,