fix(工作流): 修正 CI/CD 版本輸出與縮排
CI / 1. BUILD (pull_request) Successful in 3s
CI / 2. TEST (pull_request) Failing after 10m13s
CI / 3. RESULT (pull_request) Has been skipped

This commit is contained in:
2026-07-11 13:31:44 +00:00
parent 818532fda5
commit abf96b5843
2 changed files with 68 additions and 70 deletions
+13 -13
View File
@@ -24,16 +24,16 @@ jobs:
COMMIT_SHA: ${{ gitea.event.commits[1].id }}
# 具體步驟
steps:
# checkout source code,供後續 git describe 使用
- name: Source Code Checkout
uses: actions/checkout@${{ vars.ACTION_CHECKOUT_VERSION }}
with:
# 保留完整歷史,讓 git describe 可運作
fetch-depth: 0
# 取出包含目前 commit 的 tag
- name: Get Commit Tag
id: commit
run: echo "tag=$(git describe --contains ${{ env.COMMIT_SHA }})" >> $GITEA_OUTPUT
# 顯示 tag,讓執行紀錄可直接查看
- name: Show Tag
run: echo "${{ steps.commit.outputs.tag }}"
# checkout source code,供後續 git describe 使用
- name: Source Code Checkout
uses: actions/checkout@${{ vars.ACTION_CHECKOUT_VERSION }}
with:
# 保留完整歷史,讓 git describe 可運作
fetch-depth: 0
# 取出包含目前 commit 的 tag
- name: Get Commit Tag
id: commit
run: echo "tag=$(git describe --contains ${{ env.COMMIT_SHA }})" >> $GITEA_OUTPUT
# 顯示 tag,讓執行紀錄可直接查看
- name: Show Tag
run: echo "${{ steps.commit.outputs.tag }}"