Ignore branch builds on main repository

This commit is contained in:
Nanne Baars 2021-10-24 11:51:47 +02:00
parent a4104fdf8b
commit cc0d0fa2a6
No known key found for this signature in database
GPG Key ID: A6D6C06FE4EC14E7

View File

@ -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: