From 376239a07af57cb17c75c2a34c218ac6b60d5ebd Mon Sep 17 00:00:00 2001 From: everpcpc Date: Fri, 26 Jan 2024 08:35:25 +0800 Subject: [PATCH] ci: fix previous tag for nightly release (#14478) --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8e404d6b3440..15de9d8a00a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -110,7 +110,8 @@ jobs: gh release create ${{ steps.bump.outputs.tag }} --target ${{ steps.bump.outputs.sha }} --generate-notes --notes-start-tag $previous --latest else echo "Nightly release" - gh release create ${{ steps.bump.outputs.tag }} --target ${{ steps.bump.outputs.sha }} --generate-notes --prerelease + previous=$(gh release list --limit 1 | cut -f 1) + gh release create ${{ steps.bump.outputs.tag }} --target ${{ steps.bump.outputs.sha }} --generate-notes --notes-start-tag $previous --prerelease fi changelog: