File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,15 +47,17 @@ jobs:
4747 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4848 run : |
4949 set -euo pipefail
50- PRERELEASE_FLAG=""
5150 if [[ "${{ env.RELEASE_VERSION }}" == *"-alpha."* ]] || [[ "${{ env.RELEASE_VERSION }}" == *"-beta."* ]]; then
52- PRERELEASE_FLAG="--prerelease"
51+ gh release view "${{ env.RELEASE_VERSION }}" >/dev/null 2>&1 || \
52+ gh release create "${{ env.RELEASE_VERSION }}" \
53+ --title "${{ env.RELEASE_VERSION }}" \
54+ --prerelease
55+ else
56+ gh release view "${{ env.RELEASE_VERSION }}" >/dev/null 2>&1 || \
57+ gh release create "${{ env.RELEASE_VERSION }}" \
58+ --title "${{ env.RELEASE_VERSION }}" \
59+ --notes "${{ steps.build_changelog.outputs.changelog }}"
5360 fi
54- gh release view "${{ env.RELEASE_VERSION }}" >/dev/null 2>&1 || \
55- gh release create "${{ env.RELEASE_VERSION }}" \
56- --title "${{ env.RELEASE_VERSION }}" \
57- --notes "${{ steps.build_changelog.outputs.changelog }}" \
58- $PRERELEASE_FLAG
5961
6062 - name : Upload metadata artifact
6163 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments