diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f47295a44..3cfa1db2f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -68,8 +68,8 @@ jobs: deploy_prod: name: Deploy production environment - needs: [package, deploy_preprod] - if: always() && (needs.deploy_preprod.result == 'success' || needs.deploy_preprod.result == 'skipped') && (needs.package.result == 'success') + needs: [deploy_test, package, deploy_preprod] + if: always() && (needs.deploy_preprod.result == 'success' || needs.deploy_preprod.result == 'skipped') && (needs.package.result == 'success') && (needs.deploy_test.result == 'success') uses: ./.github/workflows/deploy-prod.yml with: docker_image: ${{ needs.package.outputs.docker_image }}