Skip to content

Commit

Permalink
ci: fixed changesets condition
Browse files Browse the repository at this point in the history
  • Loading branch information
shairez committed Jul 17, 2024
1 parent 6bc63d9 commit db98a42
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -547,13 +547,14 @@ jobs:
- changes
# Either one of the packages changed or we need to merge changesets
if: |
always() &&
((needs.changes.outputs.build-qwik == 'true' ||
needs.changes.outputs.build-others == 'true' ||
needs.changes.outputs.build-rust == 'true') &&
needs.test-e2e.result == 'success'
) ||
(github.ref == 'refs/heads/main' && github.event_name != 'workflow_dispatch')
always() && (
github.ref == 'refs/heads/main' ||
((needs.changes.outputs.build-qwik == 'true' ||
needs.changes.outputs.build-others == 'true' ||
needs.changes.outputs.build-rust == 'true') &&
needs.test-e2e.result == 'success'
)
)
steps:
- name: Checkout
Expand Down Expand Up @@ -622,7 +623,11 @@ jobs:
# Sometimes the tests just hang
timeout-minutes: 20
name: E2E Tests
if: always() && (needs.changes.outputs.build-qwik == 'true' || needs.changes.outputs.build-others == 'true' || needs.changes.outputs.build-rust == 'true') && needs.build-other-packages.result == 'success' && needs.test-unit.result == 'success'
if: |
always() && (
(needs.changes.outputs.build-qwik == 'true' || needs.changes.outputs.build-others == 'true' || needs.changes.outputs.build-rust == 'true') && needs.build-other-packages.result == 'success' && needs.test-unit.result == 'success') ||
github.ref == 'refs/heads/main'
needs:
- build-other-packages
- changes
Expand Down

0 comments on commit db98a42

Please sign in to comment.