浏览代码

Don't run duplicate actions when pushing to a branch in the main repo

Sam Clements 3 年之前
父节点
当前提交
6c5cdb84c5
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      .github/workflows/ci.yml

+ 5 - 1
.github/workflows/ci.yml

@@ -1,7 +1,11 @@
 ---
 name: ci
 
-on: [pull_request, push]
+on:
+  pull_request:
+  push:
+    branches:
+      - master
 
 env:
   # Just a reassurance to mitigate sudden network connection problems