release name is come form version file

This commit is contained in:
qiaofeng1227 2023-10-06 11:28:29 +08:00
parent 7bf0e2e1ad
commit 2f3595b5ce
2 changed files with 4 additions and 3 deletions

View File

@ -22,6 +22,7 @@ jobs:
version=$(jq -r '.version' version.json) version=$(jq -r '.version' version.json)
real_version=${version%%-*} real_version=${version%%-*}
echo "VERSION=$real_version" >> $GITHUB_ENV echo "VERSION=$real_version" >> $GITHUB_ENV
echo "RC_VERSION=$version" >> $GITHUB_ENV
changelog=$(cat changelog_latest.md) changelog=$(cat changelog_latest.md)
echo "CHANGELOG<<EOF" >> $GITHUB_OUTPUT echo "CHANGELOG<<EOF" >> $GITHUB_OUTPUT
echo "$changelog" >> $GITHUB_OUTPUT echo "$changelog" >> $GITHUB_OUTPUT
@ -66,8 +67,8 @@ jobs:
if: ${{ steps.update_data.outputs.release == 'false' }} if: ${{ steps.update_data.outputs.release == 'false' }}
with: with:
files: /* files: /*
tag_name: v${{ env.VERSION }}-rc tag_name: v${{ env.RC_VERSION }}
title: Release-v${{ env.VERSION }}-rc title: Release-v${{ env.RC_VERSION }}
body: ${{ steps.update_data.outputs.CHANGELOG }} body: ${{ steps.update_data.outputs.CHANGELOG }}
draft: false draft: false
prerelease: false prerelease: false

View File

@ -1,5 +1,5 @@
{ {
"version": "0.8.26-rc2", "version": "0.8.26-rc3",
"plugins": { "plugins": {
"portainer": "0.0.6", "portainer": "0.0.6",
"nginx": "0.0.5", "nginx": "0.0.5",