瀏覽代碼

Avoid redundant CI runs

tevador 2 年之前
父節點
當前提交
48fa275d04
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      .github/workflows/c-cpp.yml

+ 4 - 1
.github/workflows/c-cpp.yml

@@ -1,6 +1,9 @@
 name: C/C++ CI
 
-on: [push, pull_request]
+on:
+  push:
+    branches: [ master ]
+  pull_request:
 
 jobs:
   build-alpine: