From cc0d0fa2a6f9f4843d766ddd26fb4e9e22484e44 Mon Sep 17 00:00:00 2001 From: Nanne Baars Date: Sun, 24 Oct 2021 11:51:47 +0200 Subject: [PATCH] Ignore branch builds on main repository --- .github/workflows/branch_build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/branch_build.yml b/.github/workflows/branch_build.yml index d34fa952c..efd8a34de 100644 --- a/.github/workflows/branch_build.yml +++ b/.github/workflows/branch_build.yml @@ -7,7 +7,7 @@ on: - release/* jobs: install-notest: - if: ${{ github.push.repository != github.repository }} + if: "github.repository != 'WebGoat/WebGoat'" runs-on: ubuntu-latest name: "Package and linting" steps: @@ -28,7 +28,7 @@ jobs: run: mvn install -DskipTests testing: - if: ${{ github.push.repository != github.repository }} + if: "github.repository != 'WebGoat/WebGoat'" needs: install-notest runs-on: ubuntu-latest strategy: