Skip to content

Commit 893f457

Browse files
Copilotneilime
andcommitted
fix: use compact container format to avoid empty property errors
Co-authored-by: neilime <[email protected]>
1 parent 50ce2e5 commit 893f457

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,7 @@ jobs:
208208
setup:
209209
name: ⚙️ Setup
210210
runs-on: ${{ inputs.runs-on && fromJson(inputs.runs-on) || 'ubuntu-latest' }}
211-
container:
212-
image: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).image || null }}
213-
env: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).env || null }}
214-
options: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).options || null }}
211+
container: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config) || null }}
215212
needs: parse-container
216213
if: ${{ always() && !cancelled() && !failure() }}
217214
permissions:
@@ -329,10 +326,7 @@ jobs:
329326
name: 👕 Lint
330327
if: inputs.checks == true && inputs.lint && always() && !cancelled() && !failure()
331328
runs-on: ${{ inputs.runs-on && fromJson(inputs.runs-on) || 'ubuntu-latest' }}
332-
container:
333-
image: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).image || null }}
334-
env: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).env || null }}
335-
options: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).options || null }}
329+
container: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config) || null }}
336330
needs:
337331
- parse-container
338332
- setup
@@ -388,10 +382,7 @@ jobs:
388382
if: inputs.checks == true && always() && !cancelled() && !failure()
389383
runs-on: ${{ inputs.runs-on && fromJson(inputs.runs-on) || 'ubuntu-latest' }}
390384
# jscpd:ignore-start
391-
container:
392-
image: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).image || null }}
393-
env: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).env || null }}
394-
options: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).options || null }}
385+
container: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config) || null }}
395386
needs:
396387
- parse-container
397388
- setup
@@ -437,10 +428,7 @@ jobs:
437428
name: 🧪 Test
438429
if: inputs.checks == true && inputs.test && always() && !cancelled() && !failure()
439430
runs-on: ${{ inputs.runs-on && fromJson(inputs.runs-on) || 'ubuntu-latest' }}
440-
container:
441-
image: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).image || null }}
442-
env: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).env || null }}
443-
options: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config).options || null }}
431+
container: ${{ inputs.container != '' && fromJSON(needs.parse-container.outputs.config) || null }}
444432
needs:
445433
- parse-container
446434
- setup

0 commit comments

Comments
 (0)