From 7eb9482ba94f5eac0dc89ad5f5ed6cf4eab92727 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 21 Dec 2022 16:44:38 +0000 Subject: [PATCH] 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) --- .github/workflows/licenses.yml | 1 + .github/workflows/linting.yml | 1 + .github/workflows/tests.yml | 2 ++ 3 files changed, 4 insertions(+) diff --git a/.github/workflows/licenses.yml b/.github/workflows/licenses.yml index 7bedc1dfc9a..f35cdd0065a 100644 --- a/.github/workflows/licenses.yml +++ b/.github/workflows/licenses.yml @@ -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 diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 2522c36d4fd..b9f7c855c09 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 129966e5800..022b5bcc37d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: