[CI] Fixed incorrect release title (missing _<branch_name>)
This commit is contained in:
17
.github/workflows/Create_release.yml
vendored
17
.github/workflows/Create_release.yml
vendored
@@ -7,6 +7,11 @@ on:
|
|||||||
description: 'Full commit SHA for tagging'
|
description: 'Full commit SHA for tagging'
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
branch:
|
||||||
|
description: 'Branch name used as release tag suffix (e.g. canary_experimental)'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: 'canary_experimental'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
@@ -23,16 +28,19 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Build release notes
|
- name: Build release notes
|
||||||
id: meta
|
id: notes
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
REPO: ${{ github.repository }}
|
REPO: ${{ github.repository }}
|
||||||
run: |
|
run: |
|
||||||
FULL_SHA="${{ inputs.tag }}"
|
FULL_SHA="${{ inputs.tag }}"
|
||||||
SHORT_SHA="${FULL_SHA::7}"
|
SHORT_SHA="${FULL_SHA::7}"
|
||||||
|
BRANCH="${{ inputs.branch }}"
|
||||||
TAG_NAME="${SHORT_SHA}"
|
TAG_NAME="${SHORT_SHA}"
|
||||||
|
TITLE="${SHORT_SHA}_${BRANCH}"
|
||||||
|
|
||||||
echo "tag_name=${TAG_NAME}" >> "$GITHUB_OUTPUT"
|
echo "tag_name=${TAG_NAME}" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "title=${TITLE}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
PREV_TAG=$(gh release list \
|
PREV_TAG=$(gh release list \
|
||||||
--repo "${REPO}" \
|
--repo "${REPO}" \
|
||||||
@@ -135,8 +143,9 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
REPO: ${{ github.repository }}
|
REPO: ${{ github.repository }}
|
||||||
TAG: ${{ steps.meta.outputs.tag_name }}
|
TAG: ${{ steps.notes.outputs.tag_name }}
|
||||||
BODY: ${{ steps.meta.outputs.body }}
|
TITLE: ${{ steps.notes.outputs.title }}
|
||||||
|
BODY: ${{ steps.notes.outputs.body }}
|
||||||
TARGET: ${{ inputs.tag }}
|
TARGET: ${{ inputs.tag }}
|
||||||
run: |
|
run: |
|
||||||
echo "${BODY}" > release_notes.md
|
echo "${BODY}" > release_notes.md
|
||||||
@@ -153,7 +162,7 @@ jobs:
|
|||||||
gh release create "${TAG}" \
|
gh release create "${TAG}" \
|
||||||
--repo "${REPO}" \
|
--repo "${REPO}" \
|
||||||
--target "${{ inputs.tag }}" \
|
--target "${{ inputs.tag }}" \
|
||||||
--title "${TAG}" \
|
--title "${TITLE}" \
|
||||||
--notes-file release_notes.md \
|
--notes-file release_notes.md \
|
||||||
--latest \
|
--latest \
|
||||||
release_assets/*
|
release_assets/*
|
||||||
|
|||||||
1
.github/workflows/Orchestrator.yml
vendored
1
.github/workflows/Orchestrator.yml
vendored
@@ -85,3 +85,4 @@ jobs:
|
|||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
tag: ${{ github.sha }}
|
tag: ${{ github.sha }}
|
||||||
|
branch: ${{ github.ref_name }}
|
||||||
|
|||||||
Reference in New Issue
Block a user