Skip to content

A platform for community discussion. Free, open, simple.

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

David Taylor7eb9482ba94f
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: