fix: Enhance workflow conditions for E2E tests and deployment processes
This commit is contained in:
@@ -17,8 +17,23 @@ jobs:
|
||||
name: E2E Tests
|
||||
if: ${{ github.event_name == 'workflow_dispatch' ||
|
||||
github.event_name == 'push' ||
|
||||
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' &&
|
||||
(github.event.workflow_run.head_branch == 'main' || github.event.workflow_run.head_branch == 'refs/heads/main')) }}
|
||||
(
|
||||
github.event_name == 'workflow_run' &&
|
||||
github.event.workflow_run.conclusion == 'success' &&
|
||||
(
|
||||
github.event.workflow_run.head_branch == 'main' ||
|
||||
github.event.workflow_run.head_branch == 'refs/heads/main' ||
|
||||
(
|
||||
!github.event.workflow_run.head_branch &&
|
||||
(
|
||||
github.event.workflow_run.repository.default_branch == 'main' ||
|
||||
github.event.workflow_run.repository.default_branch == 'refs/heads/main' ||
|
||||
github.event.repository.default_branch == 'main' ||
|
||||
github.event.repository.default_branch == 'refs/heads/main'
|
||||
)
|
||||
)
|
||||
)
|
||||
) }}
|
||||
runs-on: ubuntu-latest
|
||||
container: mcr.microsoft.com/playwright/python:v1.55.0-jammy
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user