From e880d79ccbee67ff7a88e1384156aec3eff73c41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Sun, 4 Aug 2024 14:34:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=20GithubActions=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 6 +++--- bin/clearTag.cmd | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 867e7b016..b4ba89933 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,19 +43,19 @@ jobs: # 设置输出变量 echo "::set-output name=tag_last::${LATEST_TAG:-v1.0.0}" - echo "::set-output name=tag_cmd::-S ${SECOND_LATEST_TAG:-v1.0.0} " + echo "::set-output name=tag_second::${SECOND_LATEST_TAG:-v1.0.0}" - name: Generate Release Notes run: | rm -rf log newTag=${{ steps.last_tag.outputs.tag_last }} - git-log -m tag -f ${{ steps.last_tag.outputs.tag_cmd }}-v ${newTag#v} + git-log -m tag -f -S ${{ steps.last_tag.outputs.tag_second }} -v ${newTag#v} - name: Create Release id: create_release uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ steps.last_tag.outputs.tag_last }} release_name: Release ${{ steps.last_tag.outputs.tag_last }} diff --git a/bin/clearTag.cmd b/bin/clearTag.cmd index 044c5910d..1c12279fb 100644 --- a/bin/clearTag.cmd +++ b/bin/clearTag.cmd @@ -10,4 +10,4 @@ echo Deleting local tags... for /f "delims=" %%i in ('git tag') do git tag -d %%i echo All tags deleted. -pause \ No newline at end of file +pause \ No newline at end of file