Skip to content

Commit 5f16041

Browse files
authored
tag name fix
1 parent 8e155af commit 5f16041

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ env:
1919
IS_NIGHTLY: ${{ inputs.isNightly == 'Y' }}
2020
PROFILE: maxperf
2121
STABLE_VERSION: ${{ inputs.version }}
22+
TAG_NAME: stable
2223

2324
jobs:
2425
prepare:
2526
name: Prepare release
2627
runs-on: ubuntu-latest
2728
timeout-minutes: 30
2829
outputs:
29-
tag_name: ${{ steps.release_info.outputs.tag_name }}
30+
tag_name: ${{ env.TAG_NAME }}
3031
release_name: ${{ steps.release_info.outputs.release_name }}
3132
changelog: ${{ steps.build_changelog.outputs.changelog }}
3233
steps:
@@ -41,8 +42,8 @@ jobs:
4142
echo "tag_name=nightly-${GITHUB_SHA}" >> $GITHUB_OUTPUT
4243
echo "release_name=Nightly ($(date '+%Y-%m-%d'))" >> $GITHUB_OUTPUT
4344
else
44-
echo "tag_name=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
45-
echo "release_name=${GITHUB_REF_NAME}" >> $GITHUB_OUTPUT
45+
echo "tag_name=${{ env.TAG_NAME }}" >> $GITHUB_OUTPUT
46+
echo "release_name=${{ env.TAG_NAME }}" >> $GITHUB_OUTPUT
4647
fi
4748
4849
# Creates a `nightly-SHA` tag for this specific nightly
@@ -53,7 +54,7 @@ jobs:
5354
if: ${{ env.IS_NIGHTLY == 'true' }}
5455
uses: actions/github-script@v7
5556
env:
56-
TAG_NAME: ${{ steps.release_info.outputs.tag_name }}
57+
TAG_NAME: ${{ env.TAG_NAME }}
5758
with:
5859
script: |
5960
const createTag = require('./.github/scripts/create-tag.js')
@@ -65,7 +66,7 @@ jobs:
6566
with:
6667
configuration: "./.github/changelog.json"
6768
fromTag: ${{ env.IS_NIGHTLY == 'true' && 'nightly' || env.STABLE_VERSION }}
68-
toTag: ${{ steps.release_info.outputs.tag_name }}
69+
toTag: ${{ env.TAG_NAME }}
6970
env:
7071
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7172

0 commit comments

Comments
 (0)