Skip to content

Commit 100bb36

Browse files
committed
fix(ci): refine conditions for job execution in test_pyqt5 workflow
1 parent 40ba9dd commit 100bb36

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/test_pyqt5.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ on:
2222
- 'build_latest'
2323
default: 'all'
2424
schedule:
25+
# Only the "build_latest" job runs on schedule (see execution conditions below)
2526
- cron: "0 5 * * 1"
2627

2728
jobs:
2829
build:
29-
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.job_to_run == 'all' || github.event.inputs.job_to_run == 'build' }}
30+
if: ${{ (github.event_name == 'push' || github.event_name == 'pull_request') || (github.event_name == 'workflow_dispatch' && (github.event.inputs.job_to_run == 'all' || github.event.inputs.job_to_run == 'build')) }}
3031

3132
env:
3233
DISPLAY: ':99.0'

0 commit comments

Comments
 (0)