Browse Source

Update test.yml

1 year ago
parent
commit
ddfd9f7923
1 changed files with 8 additions and 3 deletions
  1. 8 3
      .github/workflows/test.yml

+ 8 - 3
.github/workflows/test.yml

@@ -1,10 +1,15 @@
1 1
 name: Go Build and Release
2 2
 
3
+#on:
4
+#  push:
5
+#    tags:
6
+#      - 'v*.*.*'  # 当推送带有版本号的 tag(例如 v1.0.0)时触发工作流
3 7
 on:
4 8
   push:
5
-    tags:
6
-      - 'v*.*.*'  # 当推送带有版本号的 tag(例如 v1.0.0)时触发工作流
7
-
9
+    branches: [ "master" ]
10
+  pull_request:
11
+    branches: [ "master" ]
12
+    
8 13
 jobs:
9 14
   build:
10 15
     runs-on: ubuntu-latest