Skip to content

Commit

Permalink
Revert "chore: active le déploiement pour les PR fork"
Browse files Browse the repository at this point in the history
This reverts commit 0071c3c.
  • Loading branch information
JalilArfaoui authored and liliced committed Jan 16, 2025
1 parent 8c89728 commit c6ab897
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down Expand Up @@ -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']
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit c6ab897

Please sign in to comment.