From 717232e6c09c45e7563a767eb03388adfafcfb58 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Thu, 7 Sep 2023 12:07:32 +0100 Subject: [PATCH] ci: use a different event to not trigger the preview deployment --- .github/workflows/website_deploy_preview.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/website_deploy_preview.yml b/.github/workflows/website_deploy_preview.yml index 259adab93e2a..9a195da493d3 100644 --- a/.github/workflows/website_deploy_preview.yml +++ b/.github/workflows/website_deploy_preview.yml @@ -10,7 +10,8 @@ jobs: preview-deploy: runs-on: ubuntu-latest environment: Website deployment - if: ${{ github.repository_owner == 'biomejs' }} + # Check if the event is not triggered by a fork + if: github.event.pull_request.head.repo.full_name == github.repository steps: - uses: actions/checkout@v3