Skip to content

Commit

Permalink
chore: add dependency on test for deploy jobs in ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
valerymelou committed Jul 13, 2024
1 parent cb08bbc commit 094233b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,16 @@ 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:
environment: staging

deploy:
if: github.ref == 'refs/heads/master'
needs: test
uses: ./.github/workflows/cd.yml
secrets: inherit
with:
Expand Down

0 comments on commit 094233b

Please sign in to comment.