From 15c1228316c826c6517998b84e2864505a2bcb14 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Sat, 11 Jul 2026 12:58:45 +0000 Subject: [PATCH] =?UTF-8?q?style(.gitea/workflows/master):=20=E5=B0=8D?= =?UTF-8?q?=E9=BD=8A=E5=B7=A5=E4=BD=9C=E6=B5=81=E7=A8=8B=E8=A8=BB=E8=A7=A3?= =?UTF-8?q?=E8=88=87=E7=B8=AE=E6=8E=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/master.yaml | 48 ++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.gitea/workflows/master.yaml b/.gitea/workflows/master.yaml index d4e4d89..95fa62c 100644 --- a/.gitea/workflows/master.yaml +++ b/.gitea/workflows/master.yaml @@ -26,27 +26,27 @@ jobs: COMMIT_SHA: ${{ gitea.event.commits[1].id }} # deploy job 的步驟。 steps: - # 顯示 Gitea context。 - - name: Show Gitea Context - # 將 context 格式化輸出。 - run: echo "$GITEA_CONTEXT" | jq . - # 取回完整原始碼與 tags。 - - name: Source Code Checkout - # 使用 checkout action。 - uses: actions/checkout@${{ vars.ACTION_CHECKOUT_VERSION }} - # checkout 參數。 - with: - # 取得完整歷史。 - fetch-depth: 0 - # 一併抓取 tags。 - fetch-tags: true - # 查詢指定 commit 對應的 tag。 - - name: Get Commit Tag - # 供後續步驟讀取輸出。 - id: commit - # 把查到的 tag 寫入 action 輸出。 - run: echo "tag=$(git describe --contains ${{ env.COMMIT_SHA }})" >> $GITEA_OUTPUT - # 顯示剛查到的 tag。 - - name: Show Tag - # 將 tag 印到 log。 - run: echo "${{ steps.commit.outputs.tag }}" + # 顯示 Gitea context。 + - name: Show Gitea Context + # 將 context 格式化輸出。 + run: echo "$GITEA_CONTEXT" | jq . + # 取回完整原始碼與 tags。 + - name: Source Code Checkout + # 使用 checkout action。 + uses: actions/checkout@${{ vars.ACTION_CHECKOUT_VERSION }} + # checkout 參數。 + with: + # 取得完整歷史。 + fetch-depth: 0 + # 一併抓取 tags。 + fetch-tags: true + # 查詢指定 commit 對應的 tag。 + - name: Get Commit Tag + # 供後續步驟讀取輸出。 + id: commit + # 把查到的 tag 寫入 action 輸出。 + run: echo "tag=$(git describe --contains ${{ env.COMMIT_SHA }})" >> $GITEA_OUTPUT + # 顯示剛查到的 tag。 + - name: Show Tag + # 將 tag 印到 log。 + run: echo "${{ steps.commit.outputs.tag }}"