Skip to content

Commit 1b83c2b

Browse files
authored
Merge pull request #2 from snow-actions/log
Log
2 parents 3259c23 + f30f315 commit 1b83c2b

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

action.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,43 +22,55 @@ outputs:
2222
runs:
2323
using: composite
2424
steps:
25-
- id: list
25+
- name: Original list
26+
id: list
2627
run: |
2728
json=$(curl -sS https://json.schemastore.org/github-workflow.json \
2829
| jq -c '.definitions.normalJob.properties["runs-on"].oneOf | map(select(.type == "string")) | first | .enum | map(select(. != "self-hosted"))')
30+
echo "${json}"
2931
echo "json=${json}" >> $GITHUB_OUTPUT
3032
shell: bash
31-
- id: all
33+
- name: All runners
34+
id: all
3235
run: |
3336
json=$(echo ${list} | jq -c 'map(select(endswith("-latest") | not))')
37+
echo "${json}"
3438
echo "json=${json}" >> $GITHUB_OUTPUT
3539
env:
3640
list: ${{ steps.list.outputs.json }}
3741
shell: bash
38-
- id: latest
42+
- name: Latest runners
43+
id: latest
3944
run: |
4045
json=$(echo ${list} | jq -c 'map(select(endswith("-latest")))')
46+
echo "${json}"
4147
echo "json=${json}" >> $GITHUB_OUTPUT
4248
env:
4349
list: ${{ steps.list.outputs.json }}
4450
shell: bash
45-
- id: ubuntu
51+
- name: Ubuntu runners
52+
id: ubuntu
4653
run: |
4754
json=$(echo ${list} | jq -c 'map(select(startswith("ubuntu-") and (endswith("-latest") | not)))')
55+
echo "${json}"
4856
echo "json=${json}" >> $GITHUB_OUTPUT
4957
env:
5058
list: ${{ steps.list.outputs.json }}
5159
shell: bash
52-
- id: windows
60+
- name: Windows runners
61+
id: windows
5362
run: |
5463
json=$(echo ${list} | jq -c 'map(select(startswith("windows-") and (endswith("-latest") | not)))')
64+
echo "${json}"
5565
echo "json=${json}" >> $GITHUB_OUTPUT
5666
env:
5767
list: ${{ steps.list.outputs.json }}
5868
shell: bash
59-
- id: macos
69+
- name: macOS runners
70+
id: macos
6071
run: |
6172
json=$(echo ${list} | jq -c 'map(select(startswith("macos-") and (endswith("-latest") | not)))')
73+
echo "${json}"
6274
echo "json=${json}" >> $GITHUB_OUTPUT
6375
env:
6476
list: ${{ steps.list.outputs.json }}

0 commit comments

Comments
 (0)