From fb00b3b3e1ca7c09a32d8d38bb03ce9495bb9a48 Mon Sep 17 00:00:00 2001 From: ditatompel Date: Sat, 11 Nov 2023 15:17:00 +0700 Subject: [PATCH] fix: Only run deploy action on main repo The previous deploy workflow is executed to all forks. --- .github/workflows/deploy-to-vps.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-to-vps.yaml b/.github/workflows/deploy-to-vps.yaml index 49686f0..017f50b 100644 --- a/.github/workflows/deploy-to-vps.yaml +++ b/.github/workflows/deploy-to-vps.yaml @@ -12,6 +12,7 @@ on: jobs: publish: runs-on: ubuntu-latest + if: github.repository_owner == 'ditatompel' environment: production permissions: contents: read