From 34b0699e2b9188052e30da7ce2d1d44e2efe4589 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Sat, 11 Jul 2026 06:00:09 +0000 Subject: [PATCH] =?UTF-8?q?fix(CD=20=E5=B7=A5=E4=BD=9C=E6=B5=81=E7=A8=8B):?= =?UTF-8?q?=20=E6=94=B9=E7=82=BA=E4=BB=A5=20refname=20=E6=8E=92=E5=BA=8F?= =?UTF-8?q?=E9=81=B8=E5=8F=96=20tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/master.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/master.yaml b/.gitea/workflows/master.yaml index eadfdac..01831cc 100644 --- a/.gitea/workflows/master.yaml +++ b/.gitea/workflows/master.yaml @@ -16,6 +16,6 @@ jobs: fetch-depth: 0 - name: Get Commit Tag id: commit - run: echo "tag=$(git for-each-ref --sort=-creatordate --format='%(refname:strip=2)' refs/tags --contains ${{ env.COMMIT_SHA }} | head -n 1)" >> $GITEA_OUTPUT + run: echo "tag=$(git for-each-ref --sort=-refname --format='%(refname:strip=2)' refs/tags --contains ${{ env.COMMIT_SHA }} | head -n 1)" >> $GITEA_OUTPUT - name: Show Tag run: echo "${{ steps.commit.outputs.tag }}"