瀏覽代碼

chore(ci): Limit CI push trigger to main and feature

Restrict the CI workflow's push trigger to the main and feature branches
while preserving the existing paths-ignore filters.

This avoids unnecessary push-triggered CI runs on topic branches without
changing pull request workflow behavior.

Fixes #19324
Martin Hauser 2 周之前
父節點
當前提交
cd56523cc5
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      .github/workflows/ci.yml

+ 3 - 0
.github/workflows/ci.yml

@@ -3,6 +3,9 @@ name: CI
 
 on:
   push:
+    branches:
+      - main
+      - feature
     paths-ignore:
       - '.github/ISSUE_TEMPLATE/**'
       - '.github/PULL_REQUEST_TEMPLATE.md'