From 14c09b937d21a30fd644a54341f742974941bb53 Mon Sep 17 00:00:00 2001 From: Alejandra <90076947+alejsdev@users.noreply.github.com> Date: Fri, 2 Aug 2024 14:04:54 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Update=20deploy=20workflows=20to?= =?UTF-8?q?=20exclude=20the=20main=20repository=20(#1284)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-production.yml | 2 ++ .github/workflows/deploy-staging.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 3625726..37593ad 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -7,6 +7,8 @@ on: jobs: deploy: + # Do not deploy in the main repository, only in user projects + if: github.repository_owner != 'tiangolo' runs-on: - self-hosted - production diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index dd7bf83..f455836 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -7,6 +7,8 @@ on: jobs: deploy: + # Do not deploy in the main repository, only in user projects + if: github.repository_owner != 'tiangolo' runs-on: - self-hosted - staging