Skip to content

Commit

Permalink
rearrange if
Browse files Browse the repository at this point in the history
  • Loading branch information
annarhughes committed Dec 4, 2023
1 parent 2f566f4 commit 161ecbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cypress-release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
cypress-run:
name: Cypress e2e tests
if: github.ref == 'refs/heads/main' && github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success'
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
strategy:
# when one test fails, DO NOT cancel the other
Expand Down

0 comments on commit 161ecbd

Please sign in to comment.