From 541c424eb9f63baa585e4ee93b58aa5c0e8bce48 Mon Sep 17 00:00:00 2001 From: Nanne Baars Date: Sun, 24 Oct 2021 11:36:35 +0200 Subject: [PATCH] Ignore branch builds on our repository --- .github/workflows/branch_build.yml | 1 + .github/workflows/pr_build.yml | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/branch_build.yml b/.github/workflows/branch_build.yml index eac995619..1b7328a6d 100644 --- a/.github/workflows/branch_build.yml +++ b/.github/workflows/branch_build.yml @@ -6,6 +6,7 @@ on: - develop - release/* jobs: + if: ${{ github.push.repository != github.repository }} install-notest: runs-on: ubuntu-latest name: "Package and linting" diff --git a/.github/workflows/pr_build.yml b/.github/workflows/pr_build.yml index fb1d6c037..358cf76b7 100644 --- a/.github/workflows/pr_build.yml +++ b/.github/workflows/pr_build.yml @@ -23,8 +23,6 @@ on: jobs: build: - # Run on PR from different remote not on PR from within WebGoat (committers) - if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository runs-on: ${{ matrix.os }} strategy: matrix: