File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 4848 'test_project_scratch',
4949 'hello-world',
5050 ],
51+ os: [
52+ 'ubuntu-latest',
53+ 'windows-latest',
54+ ],
55+ branch: [
56+ context.payload.ref.replace('refs/heads/', '')
57+ ],
5158 include: [
5259 {
5360 inspect_image: 'test_project_scratch',
@@ -69,26 +76,21 @@ jobs:
6976 needs : build
7077 strategy :
7178 matrix : ${{ fromJSON(needs.build.outputs.matrix) }}
72- runs-on : ubuntu-latest
79+ runs-on : ${{ matrix.os }}
7380
7481 steps :
7582 - uses : actions/checkout@v2
7683
7784 - run : ${{ matrix.prepare_command }}
7885
79- - name : Extract
80- id : extract
81- run : |
82- echo "##[set-output name=branch;]${GITHUB_REF#refs/heads/}"
83-
8486 - name : Download action
8587 uses : actions/download-artifact@v2
8688 with :
8789 name : built
8890 path : action-dlc
8991
9092 - uses : ./action-dlc
91- name : Run satackey/action-docker-layer-caching@${{ steps.extract.outputs .branch }}
93+ name : Run satackey/action-docker-layer-caching@${{ matrix .branch }}
9294 with :
9395 key : docker-layer-caching-${{ matrix.inspect_image }}-sha:${{ github.sha }}-{hash}
9496
98100 needs : [build, test_saving]
99101 strategy :
100102 matrix : ${{ fromJSON(needs.build.outputs.matrix) }}
101- runs-on : ubuntu-latest
103+ runs-on : ${{ matrix.os }}
102104 steps :
103105 - uses : actions/checkout@v2
104106
@@ -116,7 +118,7 @@ jobs:
116118 path : action-dlc
117119
118120 - uses : ./action-dlc
119- name : Run satackey/action-docker-layer-caching@${{ steps.extract.outputs .branch }}
121+ name : Run satackey/action-docker-layer-caching@${{ matrix .branch }}
120122 with :
121123 key : never-restored-docker-layer-caching-${{ matrix.inspect_image }}-sha:${{ github.sha }}-{hash}
122124 restore-keys : docker-layer-caching-${{ matrix.inspect_image }}-sha:${{ github.sha }}-
You can’t perform that action at this time.
0 commit comments