File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 pull_request :
1212 branches : [ "main", "develop", "release" ]
1313 workflow_dispatch :
14+ inputs :
15+ job_to_run :
16+ description : ' Which job to run'
17+ required : true
18+ type : choice
19+ options :
20+ - ' all'
21+ - ' build'
22+ - ' build_latest'
23+ default : ' all'
1424 schedule :
1525 - cron : " 0 5 * * 1"
1626
1727jobs :
1828 build :
29+ if : ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.job_to_run == 'all' || github.event.inputs.job_to_run == 'build' }}
1930
2031 env :
2132 DISPLAY : ' :99.0'
91102 run : pytest -v --tb=long
92103
93104 build_latest :
94- if : ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
105+ if : ${{ github.event_name == 'schedule' || ( github.event_name == 'workflow_dispatch' && (github.event.inputs.job_to_run == 'all' || github.event.inputs.job_to_run == 'build_latest')) }}
95106 continue-on-error : true
96107 env :
97108 DISPLAY : ' :99.0'
You can’t perform that action at this time.
0 commit comments