style(.gitea/workflows/ci): 對齊工作流程註解與縮排 #6

Merged
admin merged 3 commits from develop into master 2026-07-11 13:26:41 +00:00
Showing only changes of commit 15c1228316 - Show all commits
+24 -24
View File
@@ -26,27 +26,27 @@ jobs:
COMMIT_SHA: ${{ gitea.event.commits[1].id }} COMMIT_SHA: ${{ gitea.event.commits[1].id }}
# deploy job 的步驟。 # deploy job 的步驟。
steps: steps:
# 顯示 Gitea context。 # 顯示 Gitea context。
- name: Show Gitea Context - name: Show Gitea Context
# 將 context 格式化輸出。 # 將 context 格式化輸出。
run: echo "$GITEA_CONTEXT" | jq . run: echo "$GITEA_CONTEXT" | jq .
# 取回完整原始碼與 tags。 # 取回完整原始碼與 tags。
- name: Source Code Checkout - name: Source Code Checkout
# 使用 checkout action。 # 使用 checkout action。
uses: actions/checkout@${{ vars.ACTION_CHECKOUT_VERSION }} uses: actions/checkout@${{ vars.ACTION_CHECKOUT_VERSION }}
# checkout 參數。 # checkout 參數。
with: with:
# 取得完整歷史。 # 取得完整歷史。
fetch-depth: 0 fetch-depth: 0
# 一併抓取 tags。 # 一併抓取 tags。
fetch-tags: true fetch-tags: true
# 查詢指定 commit 對應的 tag。 # 查詢指定 commit 對應的 tag。
- name: Get Commit Tag - name: Get Commit Tag
# 供後續步驟讀取輸出。 # 供後續步驟讀取輸出。
id: commit id: commit
# 把查到的 tag 寫入 action 輸出。 # 把查到的 tag 寫入 action 輸出。
run: echo "tag=$(git describe --contains ${{ env.COMMIT_SHA }})" >> $GITEA_OUTPUT run: echo "tag=$(git describe --contains ${{ env.COMMIT_SHA }})" >> $GITEA_OUTPUT
# 顯示剛查到的 tag。 # 顯示剛查到的 tag。
- name: Show Tag - name: Show Tag
# 將 tag 印到 log。 # 將 tag 印到 log。
run: echo "${{ steps.commit.outputs.tag }}" run: echo "${{ steps.commit.outputs.tag }}"