From 2460a9f386f08b8dbc318cac6e40e76e7d1dd706 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Fri, 17 Jul 2026 17:03:13 +0800 Subject: [PATCH] =?UTF-8?q?chore(CI):=20=E5=83=85=E5=9C=A8=20PR=20?= =?UTF-8?q?=E8=87=B3=20develop=20=E6=99=82=E8=A7=B8=E7=99=BC=E4=B8=A6?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84=E7=92=B0?= =?UTF-8?q?=E5=A2=83=E8=AE=8A=E6=95=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yaml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index ea8f090..280dd41 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -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 能正確安裝工具