Skip to content

Commit c331d6a

Browse files
authored
ci: fix invalid workflow (#1009)
Even though valid workflow, it seems that static analyzer reports the following error: Invalid workflow file: .github/workflows/apt.yml#L1 (Line: 333, Col: 7): Unexpected value 'exclude', (Line: 364, Col: 7): Unexpected value 'exclude', (Line: 398, Col: 7): Unexpected value 'exclude' Signed-off-by: Kentaro Hayashi <[email protected]>
1 parent 578186a commit c331d6a

File tree

1 file changed

+24
-21
lines changed

1 file changed

+24
-21
lines changed

.github/workflows/apt.yml

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -328,13 +328,14 @@ jobs:
328328
runs-on: ubuntu-latest
329329
strategy:
330330
fail-fast: false
331-
matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
332-
# FIXME: 26.04 incus image is not ready yet
333-
exclude:
334-
- label: "Ubuntu Resolute amd64"
335-
rake-job: "ubuntu-resolute"
336-
test-docker-image: "ubuntu:resolute"
337-
test-incus-image: "images:ubuntu/26.04"
331+
matrix:
332+
include: ${{ fromJSON(needs.define-matrix.outputs.matrix).include }}
333+
# FIXME: 26.04 incus image is not ready yet
334+
exclude:
335+
- label: "Ubuntu Resolute amd64"
336+
rake-job: "ubuntu-resolute"
337+
test-docker-image: "ubuntu:resolute"
338+
test-incus-image: "images:ubuntu/26.04"
338339
steps:
339340
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
340341
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
@@ -359,13 +360,14 @@ jobs:
359360
runs-on: ubuntu-latest
360361
strategy:
361362
fail-fast: false
362-
matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
363-
# FIXME: 26.04 incus image is not ready yet
364-
exclude:
365-
- label: "Ubuntu Resolute amd64"
366-
rake-job: "ubuntu-resolute"
367-
test-docker-image: "ubuntu:resolute"
368-
test-incus-image: "images:ubuntu/26.04"
363+
matrix:
364+
include: ${{ fromJSON(needs.define-matrix.outputs.matrix).include }}
365+
# FIXME: 26.04 incus image is not ready yet
366+
exclude:
367+
- label: "Ubuntu Resolute amd64"
368+
rake-job: "ubuntu-resolute"
369+
test-docker-image: "ubuntu:resolute"
370+
test-incus-image: "images:ubuntu/26.04"
369371
steps:
370372
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
371373
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
@@ -393,13 +395,14 @@ jobs:
393395
runs-on: ubuntu-latest
394396
strategy:
395397
fail-fast: false
396-
matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
397-
# FIXME: 26.04 incus image is not ready yet
398-
exclude:
399-
- label: "Ubuntu Resolute amd64"
400-
rake-job: "ubuntu-resolute"
401-
test-docker-image: "ubuntu:resolute"
402-
test-incus-image: "images:ubuntu/26.04"
398+
matrix:
399+
include: ${{ fromJSON(needs.define-matrix.outputs.matrix).include }}
400+
# FIXME: 26.04 incus image is not ready yet
401+
exclude:
402+
- label: "Ubuntu Resolute amd64"
403+
rake-job: "ubuntu-resolute"
404+
test-docker-image: "ubuntu:resolute"
405+
test-incus-image: "images:ubuntu/26.04"
403406
steps:
404407
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
405408
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1

0 commit comments

Comments
 (0)