Merge pull request 'fix(CD 工作流程): 改為以 refname 排序選取 tag' (#4) from develop into master
CD / DEPLOY (push) Successful in 4s

Reviewed-on: #4
This commit was merged in pull request #4.
This commit is contained in:
2026-07-11 06:00:38 +00:00
+1 -1
View File
@@ -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 }}"