Explorar o código

run cypress job conditionally

Yuki Takei %!s(int64=4) %!d(string=hai) anos
pai
achega
fd73c85f0d
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      .github/workflows/ci.yml

+ 6 - 0
.github/workflows/ci.yml

@@ -7,6 +7,10 @@ on:
       - rc/**
       - chore/**
       - support/prepare-v**
+  pull_request:
+    branches:
+      - master
+    types: [opened, reopened, synchronize]
 
 jobs:
 
@@ -352,6 +356,8 @@ jobs:
   run-cypress-node14:
     needs: [build-prod-node14]
 
+    if: ${{ github.base_ref != null || github.ref_name == 'master' }}
+
     runs-on: ubuntu-latest
     container: cypress/base:14.18.1