Skip to content

Commit d74e52f

Browse files
committed
try with jobs.setup
1 parent 384a5f1 commit d74e52f

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

.github/.cache_version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.0.10.0.8
1+
8.0.11

.github/workflows/check.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ jobs:
6666
runs-on: ubuntu-20.04
6767
timeout-minutes: 10
6868
needs: setup
69-
if: ${{ needs.setup.outputs.RUN_SCRIPTS == 'true' }}
69+
if: ${{ jobs.setup.outputs.RUN_SCRIPTS == 'true' }}
7070
steps:
7171
- uses: actions/checkout@v2
7272

7373
- name: Restore cache
7474
uses: ./.github/actions/cache
7575
with:
76-
cache_hash: ${{ needs.setup.outputs.CACHE_COMMON_HASH }}
76+
cache_hash: ${{ jobs.setup.outputs.CACHE_COMMON_HASH }}
7777

7878
- name: Check script linting
7979
run: yarn scripts:lint
@@ -88,16 +88,16 @@ jobs:
8888
runs-on: ubuntu-20.04
8989
timeout-minutes: 10
9090
needs: setup
91-
if: ${{ needs.setup.outputs.RUN_SPECS == 'true' }}
91+
if: ${{ jobs.setup.outputs.RUN_SPECS == 'true' }}
9292
strategy:
93-
matrix: ${{ fromJSON(needs.setup.outputs.SPECS_MATRIX) }}
93+
matrix: ${{ fromJSON(jobs.setup.outputs.SPECS_MATRIX) }}
9494
steps:
9595
- uses: actions/checkout@v2
9696

9797
- name: Restore cache
9898
uses: ./.github/actions/cache
9999
with:
100-
cache_hash: ${{ needs.setup.outputs.CACHE_COMMON_HASH }}
100+
cache_hash: ${{ jobs.setup.outputs.CACHE_COMMON_HASH }}
101101

102102
- name: Cache '${{ matrix.client.name }}' bundled specs
103103
id: cache
@@ -119,7 +119,7 @@ jobs:
119119
timeout-minutes: 10
120120
runs-on: ubuntu-20.04
121121
needs: setup
122-
if: ${{ needs.setup.outputs.RUN_JS_COMMON == 'true' }}
122+
if: ${{ jobs.setup.outputs.RUN_JS_COMMON == 'true' }}
123123
strategy:
124124
matrix:
125125
client:
@@ -132,7 +132,7 @@ jobs:
132132
- name: Restore cache
133133
uses: ./.github/actions/cache
134134
with:
135-
cache_hash: ${{ needs.setup.outputs.CACHE_COMMON_HASH }}
135+
cache_hash: ${{ jobs.setup.outputs.CACHE_COMMON_HASH }}
136136

137137
- name: Cache '${{ matrix.client }}' client
138138
id: cache
@@ -158,11 +158,11 @@ jobs:
158158
- client_javascript_common
159159
if: |
160160
always() &&
161-
needs.setup.outputs.RUN_JS == 'true' &&
161+
jobs.setup.outputs.RUN_JS == 'true' &&
162162
!contains(needs.*.result, 'cancelled') &&
163163
!contains(needs.*.result, 'failure')
164164
strategy:
165-
matrix: ${{ fromJSON(needs.setup.outputs.JS_MATRIX) }}
165+
matrix: ${{ fromJSON(jobs.setup.outputs.JS_MATRIX) }}
166166
steps:
167167
- uses: actions/checkout@v2
168168

@@ -171,7 +171,7 @@ jobs:
171171
with:
172172
job: client
173173
language: javascript
174-
cache_hash: ${{ needs.setup.outputs.CACHE_COMMON_HASH }}
174+
cache_hash: ${{ jobs.setup.outputs.CACHE_COMMON_HASH }}
175175

176176
- name: Cache '${{ matrix.client.name }}' client
177177
id: cache
@@ -210,11 +210,11 @@ jobs:
210210
- specs
211211
if: |
212212
always() &&
213-
needs.setup.outputs.RUN_JAVA == 'true' &&
213+
jobs.setup.outputs.RUN_JAVA == 'true' &&
214214
!contains(needs.*.result, 'cancelled') &&
215215
!contains(needs.*.result, 'failure')
216216
strategy:
217-
matrix: ${{ fromJSON(needs.setup.outputs.JAVA_MATRIX) }}
217+
matrix: ${{ fromJSON(jobs.setup.outputs.JAVA_MATRIX) }}
218218
steps:
219219
- uses: actions/checkout@v2
220220

@@ -223,7 +223,7 @@ jobs:
223223
with:
224224
job: client
225225
language: java
226-
cache_hash: ${{ needs.setup.outputs.CACHE_COMMON_HASH }}
226+
cache_hash: ${{ jobs.setup.outputs.CACHE_COMMON_HASH }}
227227

228228
- name: Cache '${{ matrix.client.name }}' client
229229
id: cache
@@ -260,11 +260,11 @@ jobs:
260260
- specs
261261
if: |
262262
always() &&
263-
needs.setup.outputs.RUN_PHP == 'true' &&
263+
jobs.setup.outputs.RUN_PHP == 'true' &&
264264
!contains(needs.*.result, 'cancelled') &&
265265
!contains(needs.*.result, 'failure')
266266
strategy:
267-
matrix: ${{ fromJSON(needs.setup.outputs.PHP_MATRIX) }}
267+
matrix: ${{ fromJSON(jobs.setup.outputs.PHP_MATRIX) }}
268268
steps:
269269
- uses: actions/checkout@v2
270270

@@ -273,7 +273,7 @@ jobs:
273273
with:
274274
job: client
275275
language: php
276-
cache_hash: ${{ needs.setup.outputs.CACHE_COMMON_HASH }}
276+
cache_hash: ${{ jobs.setup.outputs.CACHE_COMMON_HASH }}
277277

278278
- name: Cache '${{ matrix.client.name }}' client
279279
id: cache
@@ -308,7 +308,7 @@ jobs:
308308
needs: client_javascript
309309
if: |
310310
always() &&
311-
needs.setup.outputs.RUN_JS_ALGOLIASEARCH == 'true' &&
311+
jobs.setup.outputs.RUN_JS_ALGOLIASEARCH == 'true' &&
312312
!contains(needs.*.result, 'cancelled') &&
313313
!contains(needs.*.result, 'failure')
314314
steps:
@@ -319,7 +319,7 @@ jobs:
319319
with:
320320
job: codegen
321321
language: javascript
322-
cache_hash: ${{ needs.setup.outputs.CACHE_COMMON_HASH }}
322+
cache_hash: ${{ jobs.setup.outputs.CACHE_COMMON_HASH }}
323323

324324
- name: Cache 'algoliasearch' client
325325
id: cache
@@ -345,7 +345,7 @@ jobs:
345345
needs: client_javascript
346346
if: |
347347
always() &&
348-
needs.setup.outputs.RUN_JS_TESTS == 'true' &&
348+
jobs.setup.outputs.RUN_JS_TESTS == 'true' &&
349349
!contains(needs.*.result, 'cancelled') &&
350350
!contains(needs.*.result, 'failure')
351351
steps:
@@ -355,7 +355,7 @@ jobs:
355355
uses: ./.github/actions/cache
356356
with:
357357
job: cts
358-
cache_hash: ${{ needs.setup.outputs.CACHE_COMMON_HASH }}
358+
cache_hash: ${{ jobs.setup.outputs.CACHE_COMMON_HASH }}
359359

360360
- name: Run client-common tests
361361
run: yarn workspace @experimental-api-clients-automation/client-common test
@@ -369,7 +369,7 @@ jobs:
369369
- client_php
370370
if: |
371371
always() &&
372-
needs.setup.outputs.RUN_CTS == 'true' &&
372+
jobs.setup.outputs.RUN_CTS == 'true' &&
373373
!contains(needs.*.result, 'cancelled') &&
374374
!contains(needs.*.result, 'failure')
375375
steps:
@@ -383,7 +383,7 @@ jobs:
383383
uses: ./.github/actions/cache
384384
with:
385385
job: cts
386-
cache_hash: ${{ needs.setup.outputs.CACHE_COMMON_HASH }}
386+
cache_hash: ${{ jobs.setup.outputs.CACHE_COMMON_HASH }}
387387

388388
- name: Push generated code to generated branch
389389
id: pushGeneratedCode
@@ -417,7 +417,7 @@ jobs:
417417
if: |
418418
always() &&
419419
github.ref == 'refs/heads/main' &&
420-
needs.setup.outputs.RUN_CODEGEN == 'true' &&
420+
jobs.setup.outputs.RUN_CODEGEN == 'true' &&
421421
needs.cts.result == 'success'
422422
steps:
423423
- uses: actions/checkout@v2
@@ -430,7 +430,7 @@ jobs:
430430
uses: ./.github/actions/cache
431431
with:
432432
job: codegen
433-
cache_hash: ${{ needs.setup.outputs.CACHE_COMMON_HASH }}
433+
cache_hash: ${{ jobs.setup.outputs.CACHE_COMMON_HASH }}
434434

435435
- name: Push generated code to main
436436
id: pushGeneratedCode

0 commit comments

Comments
 (0)