File tree Expand file tree Collapse file tree 1 file changed +20
-7
lines changed Expand file tree Collapse file tree 1 file changed +20
-7
lines changed Original file line number Diff line number Diff line change 17
17
- cron : " 0 0 * * 0"
18
18
workflow_dispatch :
19
19
inputs :
20
- runner-os :
21
- default : ubuntu-latest
22
- type : choice
23
- options :
24
- - ubuntu-latest
25
- - macos-latest
20
+ ubuntu-latest :
21
+ type : boolean
22
+ default : true
23
+ macos-latest :
24
+ type : boolean
25
+ default : false
26
26
27
27
28
28
jobs :
29
+ get-selected-os :
30
+ runs-on : ubuntu-latest
31
+ outputs : # This needs to be set if you want to consume the output on another job
32
+ os-runners : ${{ steps.get-selected-os.outputs.selected}}
33
+ steps :
34
+ - name : Get selected runner OS
35
+ id : get-selected-os
36
+ uses : joao-zanutto/get-selected@v1
37
+
29
38
run-it-tests-job :
30
- runs-on : ${{ inputs.runner-os || 'ubuntu-latest' }}
39
+ needs : get-selected-os
40
+ strategy :
41
+ matrix :
42
+ os : ${{ fromJson(needs.get-selected-os.outputs.os-runners) }}
43
+ runs-on : ${{ matrix.os }}
31
44
steps :
32
45
- name : Checkout
33
46
uses : actions/checkout@v2
You can’t perform that action at this time.
0 commit comments