浏览代码

调整 github workflow test 的触发逻辑

Signed-off-by: 716 <[email protected]>
716 3 年之前
父节点
当前提交
9d225409ec
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      .github/workflows/build-test.yml

+ 3 - 2
.github/workflows/build-test.yml

@@ -1,8 +1,9 @@
 on:
   push:
+    branches: [master]
   pull_request:
-    branches:
-      - master
+    # The branches below must be a subset of the branches above
+    branches: [master]
 
 # for cache
 # checkout https://github.com/magnetikonline/action-golang-cache