From 8d6672e5a34799a3a36ddde966f240cb8ce2611f Mon Sep 17 00:00:00 2001 From: Jeffery Date: Sat, 11 Jul 2026 05:54:50 +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=E9=81=B8=E5=8F=96=E5=8C=85=E5=90=AB=20com?= =?UTF-8?q?mit=20=E7=9A=84=E6=9C=80=E6=96=B0=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 cfce70f..eadfdac 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 describe --contains ${{ env.COMMIT_SHA }})" >> $GITEA_OUTPUT + run: echo "tag=$(git for-each-ref --sort=-creatordate --format='%(refname:strip=2)' refs/tags --contains ${{ env.COMMIT_SHA }} | head -n 1)" >> $GITEA_OUTPUT - name: Show Tag run: echo "${{ steps.commit.outputs.tag }}"