File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -22,43 +22,55 @@ outputs:
22
22
runs :
23
23
using : composite
24
24
steps :
25
- - id : list
25
+ - name : Original list
26
+ id : list
26
27
run : |
27
28
json=$(curl -sS https://json.schemastore.org/github-workflow.json \
28
29
| jq -c '.definitions.normalJob.properties["runs-on"].oneOf | map(select(.type == "string")) | first | .enum | map(select(. != "self-hosted"))')
30
+ echo "${json}"
29
31
echo "json=${json}" >> $GITHUB_OUTPUT
30
32
shell : bash
31
- - id : all
33
+ - name : All runners
34
+ id : all
32
35
run : |
33
36
json=$(echo ${list} | jq -c 'map(select(endswith("-latest") | not))')
37
+ echo "${json}"
34
38
echo "json=${json}" >> $GITHUB_OUTPUT
35
39
env :
36
40
list : ${{ steps.list.outputs.json }}
37
41
shell : bash
38
- - id : latest
42
+ - name : Latest runners
43
+ id : latest
39
44
run : |
40
45
json=$(echo ${list} | jq -c 'map(select(endswith("-latest")))')
46
+ echo "${json}"
41
47
echo "json=${json}" >> $GITHUB_OUTPUT
42
48
env :
43
49
list : ${{ steps.list.outputs.json }}
44
50
shell : bash
45
- - id : ubuntu
51
+ - name : Ubuntu runners
52
+ id : ubuntu
46
53
run : |
47
54
json=$(echo ${list} | jq -c 'map(select(startswith("ubuntu-") and (endswith("-latest") | not)))')
55
+ echo "${json}"
48
56
echo "json=${json}" >> $GITHUB_OUTPUT
49
57
env :
50
58
list : ${{ steps.list.outputs.json }}
51
59
shell : bash
52
- - id : windows
60
+ - name : Windows runners
61
+ id : windows
53
62
run : |
54
63
json=$(echo ${list} | jq -c 'map(select(startswith("windows-") and (endswith("-latest") | not)))')
64
+ echo "${json}"
55
65
echo "json=${json}" >> $GITHUB_OUTPUT
56
66
env :
57
67
list : ${{ steps.list.outputs.json }}
58
68
shell : bash
59
- - id : macos
69
+ - name : macOS runners
70
+ id : macos
60
71
run : |
61
72
json=$(echo ${list} | jq -c 'map(select(startswith("macos-") and (endswith("-latest") | not)))')
73
+ echo "${json}"
62
74
echo "json=${json}" >> $GITHUB_OUTPUT
63
75
env :
64
76
list : ${{ steps.list.outputs.json }}
You can’t perform that action at this time.
0 commit comments