Files
ai-code-review/.gitea/workflows/master.yaml
T
Jeffery 11205d5b82
CI / 1. BUILD (pull_request) Successful in 2s
CI / 2. TEST (pull_request) Failing after 12m14s
CI / 3. RESULT (pull_request) Has been skipped
chore(workflows): CI 目標非 develop 跳過 test job、CD 加印 gitea context 與 fetch-tags
2026-07-03 17:11:21 +08:00

26 lines
646 B
YAML

name: CD
on:
push:
branches:
- master
jobs:
deploy:
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
- name: Show Tag
run: echo "${{ steps.commit.outputs.tag }}"