Compare commits

..
1 Commits
Author SHA1 Message Date
jiantw83 8d6672e5a3 fix(CD 工作流程): 改為選取包含 commit 的最新 tag
CI / 1. BUILD (pull_request) Successful in 2s
CI / 2. TEST (pull_request) Successful in 1s
CI / 3. RESULT (pull_request) Successful in 1s
2026-07-11 05:54:50 +00:00
+1 -1
View File
@@ -16,6 +16,6 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Get Commit Tag - name: Get Commit Tag
id: commit 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 - name: Show Tag
run: echo "${{ steps.commit.outputs.tag }}" run: echo "${{ steps.commit.outputs.tag }}"