From 094233b5741a27e51da718a1c38ecf03842de281 Mon Sep 17 00:00:00 2001 From: Valery Melou Date: Sat, 13 Jul 2024 14:11:00 +0100 Subject: [PATCH] chore: add dependency on test for deploy jobs in ci.yml --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 28d14e9..8df74a2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,7 +58,8 @@ jobs: key: ${{ steps.nx-cache-restore.outputs.cache-primary-key }} deploy-preview: - if: github.ref == 'refs/heads/develop' || github.event.pull_request.head.repo.full_name == github.repository + if: github.ref == 'refs/heads/develop' + needs: test uses: ./.github/workflows/cd.yml secrets: inherit with: @@ -66,6 +67,7 @@ jobs: deploy: if: github.ref == 'refs/heads/master' + needs: test uses: ./.github/workflows/cd.yml secrets: inherit with: