@@ -69,12 +69,14 @@ jobs:
6969 runs-on : ubuntu-24.04
7070 permissions :
7171 actions : write
72+ # Skip if 8 and GPT or Kitten and MBR
73+ if : ${{ ( inputs.gpt && inputs.version_major != '8' || inputs.mbr && inputs.version_major != '10-kitten' ) && ( inputs.console || inputs.gnome ) && ( inputs.mbr || inputs.gpt ) }}
7274 strategy :
7375 fail-fast : false
7476 matrix :
7577 # Set matrix based on boolean inputs.* with true value
76- image_types : ${{ fromJSON(format('["{0}", "{1}"]', ( inputs.console && 'console' ), ( inputs.gnome && 'gnome' ) )) }}
77- partitioning : ${{ fromJSON(format('["{0}", "{1}"]', ( inputs.mbr && 'mbr' ), ( inputs.gpt && 'gpt' ) )) }}
78+ image_types : ${{ fromJSON(format('["{0}", "{1}"]', inputs.console && 'console' || 'false', inputs.gnome && 'gnome' || 'false' )) }}
79+ partitioning : ${{ fromJSON(format('["{0}", "{1}"]', inputs.mbr && 'mbr' || 'false', inputs.gpt && 'gpt' || 'false' )) }}
7880 version_major : ${{ fromJSON(format('["{0}"]', inputs.version_major )) }}
7981 exclude :
8082 - image_types : ' false'
@@ -120,8 +122,8 @@ jobs:
120122 # max-parallel: 1
121123 matrix :
122124 # Set matrix based on boolean inputs.* with true value
123- image_types : ${{ fromJSON(format('["{0}", "{1}"]', ( inputs.console && 'console' ), ( inputs.gnome && 'gnome' ) )) }}
124- partitioning : ${{ fromJSON(format('["{0}", "{1}"]', ( inputs.mbr && 'mbr' ), ( inputs.gpt && 'gpt' ) )) }}
125+ image_types : ${{ fromJSON(format('["{0}", "{1}"]', inputs.console && 'console' || 'false', inputs.gnome && 'gnome' || 'false' )) }}
126+ partitioning : ${{ fromJSON(format('["{0}", "{1}"]', inputs.mbr && 'mbr' || 'false', inputs.gpt && 'gpt' || 'false' )) }}
125127 version_major : ${{ fromJSON(format('["{0}"]', inputs.version_major )) }}
126128 exclude :
127129 - image_types : ' false'
0 commit comments