chore(workflows): CI 目標非 develop 跳過 test job、CD 加印 gitea context 與 fetch-tags
CI / 1. BUILD (pull_request) Successful in 2s
CI / 2. TEST (pull_request) Failing after 12m14s
CI / 3. RESULT (pull_request) Has been skipped

This commit is contained in:
Jeffery
2026-07-03 17:11:21 +08:00
parent 0be25e667c
commit 11205d5b82
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -8,12 +8,16 @@ jobs:
name: DEPLOY
runs-on: ubuntu
env:
GITEA_CONTEXT: ${{ toJSON(gitea) }}
COMMIT_SHA: ${{ gitea.event.commits[1].id }}
steps:
- name: Show Gitea Context
run: echo "$GITEA_CONTEXT" | jq .
- name: Source Code Checkout
uses: actions/checkout@${{ vars.ACTION_CHECKOUT_VERSION }}
with:
fetch-depth: 0
fetch-tags: true
- name: Get Commit Tag
id: commit
run: echo "tag=$(git describe --contains ${{ env.COMMIT_SHA }})" >> $GITEA_OUTPUT