From 2fa69428539e3f04f130f164a034f02dd0d0edfa Mon Sep 17 00:00:00 2001 From: Gliniak <153369+Gliniak@users.noreply.github.com> Date: Tue, 24 Mar 2026 21:06:50 +0100 Subject: [PATCH] [CI] Fixed incorrect release title (missing _) --- .github/workflows/Create_release.yml | 17 +++++++++++++---- .github/workflows/Orchestrator.yml | 1 + 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Create_release.yml b/.github/workflows/Create_release.yml index 18fade20d..3899178f5 100644 --- a/.github/workflows/Create_release.yml +++ b/.github/workflows/Create_release.yml @@ -7,6 +7,11 @@ on: description: 'Full commit SHA for tagging' required: true type: string + branch: + description: 'Branch name used as release tag suffix (e.g. canary_experimental)' + required: false + type: string + default: 'canary_experimental' jobs: release: @@ -23,16 +28,19 @@ jobs: fetch-depth: 0 - name: Build release notes - id: meta + id: notes env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} REPO: ${{ github.repository }} run: | FULL_SHA="${{ inputs.tag }}" SHORT_SHA="${FULL_SHA::7}" + BRANCH="${{ inputs.branch }}" TAG_NAME="${SHORT_SHA}" + TITLE="${SHORT_SHA}_${BRANCH}" echo "tag_name=${TAG_NAME}" >> "$GITHUB_OUTPUT" + echo "title=${TITLE}" >> "$GITHUB_OUTPUT" PREV_TAG=$(gh release list \ --repo "${REPO}" \ @@ -135,8 +143,9 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} REPO: ${{ github.repository }} - TAG: ${{ steps.meta.outputs.tag_name }} - BODY: ${{ steps.meta.outputs.body }} + TAG: ${{ steps.notes.outputs.tag_name }} + TITLE: ${{ steps.notes.outputs.title }} + BODY: ${{ steps.notes.outputs.body }} TARGET: ${{ inputs.tag }} run: | echo "${BODY}" > release_notes.md @@ -153,7 +162,7 @@ jobs: gh release create "${TAG}" \ --repo "${REPO}" \ --target "${{ inputs.tag }}" \ - --title "${TAG}" \ + --title "${TITLE}" \ --notes-file release_notes.md \ --latest \ release_assets/* diff --git a/.github/workflows/Orchestrator.yml b/.github/workflows/Orchestrator.yml index a579d0e7c..b144c01be 100644 --- a/.github/workflows/Orchestrator.yml +++ b/.github/workflows/Orchestrator.yml @@ -85,3 +85,4 @@ jobs: secrets: inherit with: tag: ${{ github.sha }} + branch: ${{ github.ref_name }}