Skip to content

Commit cf8e339

Browse files
authored
Rename matrix lookup job and steps
1 parent 391da5e commit cf8e339

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,29 @@ defaults:
2323
shell: bash
2424

2525
jobs:
26-
os:
26+
os-matrix:
2727
runs-on: ubuntu-latest
2828
outputs:
29-
os: ${{ steps.os.outputs.os }}
29+
matrix: ${{ steps.lookup.outputs.matrix }}
3030
steps:
3131
- name: 🤘 checkout
3232
uses: actions/checkout@v2
3333

34-
- name: 🔎 os
35-
id: os
34+
- name: 🔎 lookup
35+
id: lookup
3636
shell: pwsh
3737
run: |
3838
$path = './.github/workflows/os-matrix.json'
3939
$os = if (test-path $path) { cat $path } else { '["ubuntu-latest"]' }
40-
echo "::set-output name=os::$os"
40+
echo "::set-output name=matrix::$os"
4141
4242
build:
43-
needs: os
43+
needs: os-matrix
4444
name: build-${{ matrix.os }}
4545
runs-on: ${{ matrix.os }}
4646
strategy:
4747
matrix:
48-
os: ${{ fromJSON(needs.os.outputs.os) }}
48+
os: ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
4949
steps:
5050
- name: 🤘 checkout
5151
uses: actions/checkout@v2

0 commit comments

Comments
 (0)