Lucas Severo Alves 5 лет назад
Родитель
Сommit
de2f9edaa0
2 измененных файлов с 6 добавлено и 4 удалено
  1. 3 1
      .github/workflows/all.yml
  2. 3 3
      .github/workflows/main.yml

+ 3 - 1
.github/workflows/all.yml

@@ -1,4 +1,4 @@
-name: CI
+name: all-ci
 
 on:
   push:
@@ -7,6 +7,8 @@ on:
       - '*/*'       # matches every branch containing a single '/'
       - '**'        # matches every branch
       - '!main'     # excludes main
+  pull_request:
+    branches: [ '!main' ]
 
 env: 
   KUBEBUILDER_VERSION: 2.3.1

+ 3 - 3
.github/workflows/main.yml

@@ -1,12 +1,12 @@
-name: CI
+name: main-ci
 
 on:
   push:
-    branches: [ master ]
+    branches: [ main ]
     tags:
       - '*'
   pull_request:
-    branches: [ master ]
+    branches: [ main ]
 
 env: 
   KUBEBUILDER_VERSION: 2.3.1