chore: active le déploiement pour les PR fork

pull/3285/head
Alice Dahan 2024-12-13 13:50:13 +01:00 committed by liliced
parent 42b0f88723
commit 0071c3cb60
1 changed files with 2 additions and 4 deletions

View File

@ -18,7 +18,6 @@ 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 }}
@ -38,7 +37,6 @@ 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 }}
@ -139,7 +137,7 @@ jobs:
deploy-preview:
needs: [build, build-storybook, deploy-context]
runs-on: ubuntu-22.04
if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && needs.deploy-context.outputs.env-name != 'master'
if: needs.deploy-context.outputs.env-name != 'master'
strategy:
matrix:
site: ['', 'en']
@ -236,7 +234,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() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && needs.deploy-preview.result == 'success'
if: always() && needs.deploy-preview.result == 'success'
needs: [deploy-context, deploy-preview]
strategy: