fix(工作流): 修正 CI/CD 版本輸出與縮排
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user