Skip to content

Commit 339b803

Browse files
authored
fix(ci): use fromJSON instead of env (#740)
1 parent 25ec98d commit 339b803

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/check.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,15 @@ jobs:
9696
runs-on: ubuntu-20.04
9797
timeout-minutes: 10
9898
needs: setup
99-
env:
100-
matrix: ${{ fromJSON(needs.setup.outputs.SPECS_MATRIX) }}
10199
steps:
102100
- uses: actions/checkout@v2
103101

104102
- name: Cache bundled specs
105103
id: cache
106104
uses: actions/cache@v3
107105
with:
108-
key: ${{ matrix.cacheKey }}
109-
path: ${{ matrix.bundledPath }}
106+
key: ${{ fromJSON(needs.setup.outputs.SPECS_MATRIX).cacheKey }}
107+
path: ${{ fromJSON(needs.setup.outputs.SPECS_MATRIX).bundledPath }}
110108

111109
- name: Setup
112110
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
@@ -116,14 +114,14 @@ jobs:
116114

117115
- name: Building specs
118116
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
119-
run: yarn cli build specs ${{ matrix.toRun }}
117+
run: yarn cli build specs ${{ fromJSON(needs.setup.outputs.SPECS_MATRIX).toRun }}
120118

121119
- name: Store bundled specs
122120
uses: actions/upload-artifact@v3
123121
with:
124122
if-no-files-found: error
125123
name: specs
126-
path: ${{ matrix.bundledPath }}
124+
path: ${{ fromJSON(needs.setup.outputs.SPECS_MATRIX).bundledPath }}
127125

128126
client_javascript_utils:
129127
timeout-minutes: 10

0 commit comments

Comments
 (0)