File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,29 +23,29 @@ defaults:
2323 shell : bash
2424
2525jobs :
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
You can’t perform that action at this time.
0 commit comments