From c6ab89702bc1a5d76beb5fff7c3ec2b8c882530e Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Thu, 16 Jan 2025 11:44:15 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20"chore:=20active=20le=20d=C3=A9ploieme?= =?UTF-8?q?nt=20pour=20les=20PR=20fork"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 0071c3cb601466542fefab9c52ca50c11b3e4a46. --- .github/workflows/deploy.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index dcd1b3737e..4fae9c9bd1 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -18,6 +18,7 @@ on: jobs: deploy-context: + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-22.04 outputs: env-name: ${{ steps.deploy-env.outputs.name }} @@ -37,6 +38,7 @@ jobs: build: needs: deploy-context + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository env: API_BASE_URL: ${{ needs.deploy-context.outputs.api_url }} SERVER_BASE_URL: ${{ needs.deploy-context.outputs.server_url }} @@ -137,7 +139,7 @@ jobs: deploy-preview: needs: [build, build-storybook, deploy-context] runs-on: ubuntu-22.04 - if: needs.deploy-context.outputs.env-name != 'master' + if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && needs.deploy-context.outputs.env-name != 'master' strategy: matrix: site: ['', 'en'] @@ -234,7 +236,7 @@ jobs: runs-on: ubuntu-22.04 container: cypress/browsers:latest # We need to specify always() https://github.com/actions/runner/issues/491 - if: always() && needs.deploy-preview.result == 'success' + if: always() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && needs.deploy-preview.result == 'success' needs: [deploy-context, deploy-preview] strategy: