DEV: Skip 'push' workflow events for discourse-private-mirror (#19556)

We don't want 'push' workflows to run on this private fork (which is used for developing security-fixes before public disclosure)
This commit is contained in:
David Taylor 2022-12-21 16:44:38 +00:00 committed by GitHub
parent f1ec8c869a
commit 7eb9482ba9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@ permissions:
jobs:
build:
if: "!(github.event_name == 'push' && github.repository == 'discourse/discourse-private-fork')"
name: run
runs-on: ubuntu-latest
container: discourse/discourse_test:slim

View File

@ -15,6 +15,7 @@ permissions:
jobs:
build:
if: "!(github.event_name == 'push' && github.repository == 'discourse/discourse-private-fork')"
name: run
runs-on: ubuntu-latest
container: discourse/discourse_test:slim

View File

@ -17,6 +17,7 @@ permissions:
jobs:
build:
if: "!(github.event_name == 'push' && github.repository == 'discourse/discourse-private-fork')"
name: ${{ matrix.target }} ${{ matrix.build_type }}
runs-on: ${{ (matrix.build_type == 'annotations') && 'ubuntu-latest' || 'ubuntu-20.04-8core' }}
container: discourse/discourse_test:slim${{ (matrix.build_type == 'frontend' || matrix.build_type == 'system') && '-browsers' || '' }}
@ -203,6 +204,7 @@ jobs:
timeout-minutes: 30
core_frontend_tests:
if: "!(github.event_name == 'push' && github.repository == 'discourse/discourse-private-fork')"
name: core frontend (${{ matrix.browser }})
runs-on: ubuntu-20.04-8core
container: