@@ -69,12 +69,14 @@ jobs:
69
69
runs-on : ubuntu-24.04
70
70
permissions :
71
71
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 ) }}
72
74
strategy :
73
75
fail-fast : false
74
76
matrix :
75
77
# 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' )) }}
78
80
version_major : ${{ fromJSON(format('["{0}"]', inputs.version_major )) }}
79
81
exclude :
80
82
- image_types : ' false'
@@ -120,8 +122,8 @@ jobs:
120
122
# max-parallel: 1
121
123
matrix :
122
124
# 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' )) }}
125
127
version_major : ${{ fromJSON(format('["{0}"]', inputs.version_major )) }}
126
128
exclude :
127
129
- image_types : ' false'
0 commit comments