From 2e0f6b333ebdfe1b64c3f6b67c56b7f3ea7a7b6f Mon Sep 17 00:00:00 2001 From: Nathan Melehan Date: Wed, 13 Sep 2023 20:04:00 -0400 Subject: [PATCH] Only run deployment jobs on main linode repo --- .github/workflows/deploy-to-feature-testing-server.yaml | 1 + .github/workflows/deploy-to-main-staging-server.yaml | 1 + .github/workflows/deploy-to-production.yaml | 1 + .github/workflows/update-algolia-on-schedule.yaml | 1 + 4 files changed, 4 insertions(+) diff --git a/.github/workflows/deploy-to-feature-testing-server.yaml b/.github/workflows/deploy-to-feature-testing-server.yaml index 563d7a08d7d..7a6741e31bf 100644 --- a/.github/workflows/deploy-to-feature-testing-server.yaml +++ b/.github/workflows/deploy-to-feature-testing-server.yaml @@ -50,6 +50,7 @@ env: jobs: deploy-to-feature-testing-server: + if: github.repository_owner == 'linode' runs-on: ubuntu-latest environment: diff --git a/.github/workflows/deploy-to-main-staging-server.yaml b/.github/workflows/deploy-to-main-staging-server.yaml index bbfc34b9015..adf3ac57558 100644 --- a/.github/workflows/deploy-to-main-staging-server.yaml +++ b/.github/workflows/deploy-to-main-staging-server.yaml @@ -50,6 +50,7 @@ env: jobs: deploy-to-main-staging-server: + if: github.repository_owner == 'linode' runs-on: ubuntu-latest environment: diff --git a/.github/workflows/deploy-to-production.yaml b/.github/workflows/deploy-to-production.yaml index 9e6a8c7e677..7b5a666bd81 100644 --- a/.github/workflows/deploy-to-production.yaml +++ b/.github/workflows/deploy-to-production.yaml @@ -46,6 +46,7 @@ env: jobs: deploy-to-production: + if: github.repository_owner == 'linode' runs-on: ubuntu-latest environment: diff --git a/.github/workflows/update-algolia-on-schedule.yaml b/.github/workflows/update-algolia-on-schedule.yaml index db81821fdd6..a3be355f419 100644 --- a/.github/workflows/update-algolia-on-schedule.yaml +++ b/.github/workflows/update-algolia-on-schedule.yaml @@ -38,6 +38,7 @@ on: jobs: update-algolia-on-schedule: + if: github.repository_owner == 'linode' runs-on: ubuntu-latest environment: