chore(CI): 僅在 PR 至 develop 時觸發並移除未使用的環境變數
composite-actions/template: CI / BUILD (pull_request) Successful in 26s

This commit is contained in:
Jeffery
2026-07-17 17:03:13 +08:00
parent 43e0860e0d
commit 2460a9f386
+3 -9
View File
@@ -1,7 +1,7 @@
# ============================================================================
# 用途:本 CI workflow 於對 master 或 develop 發出 Pull Request(開啟或更新)時觸發,
# 用途:本 CI workflow 於對 develop 發出 Pull Request(開啟或更新)時觸發,
# checkout 原始碼後以本 repo 的 composite action 安裝工具,並取得工具版本號驗證安裝。
# 更新時間:2026/07/17 12:38:20
# 更新時間:2026/07/17 17:02:15
# ============================================================================
# workflow 名稱,顯示於 Gitea Actions 介面
name: CI
@@ -10,18 +10,12 @@ name: CI
on:
# 針對 Pull Request 事件觸發
pull_request:
# 僅當 PR 目標分支為下列分支時觸發
# 僅當 PR 目標分支為 develop 時觸發
branches:
- master
- develop
# 僅在 PR 開啟(opened)或有新 commit 更新(synchronize)時觸發
types: [opened, synchronize]
# 全域環境變數,供各 job/step 引用
env:
# 是否為 beta:當 PR 目標分支為 develop 時為 true
IS_BETA: ${{ gitea.base_ref == 'develop' }}
# 工作(job)定義區塊
jobs:
# test job:驗證本 composite action 能正確安裝工具