ci: Add some sanity conditions for skips; formatting

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-05-30 15:59:28 +00:00
parent a86bb8b8c7
commit d992333f2e
5 changed files with 38 additions and 8 deletions

View File

@@ -5,7 +5,6 @@ on:
inputs:
bake_targets:
type: string
default: '["default"]'
description: Bake Matrix
cargo_profiles:
type: string
@@ -58,7 +57,13 @@ on:
jobs:
bake:
if: ${{ !failure() && !cancelled() && fromJSON(inputs.machines)[0] != null }}
if: >
${{
!failure() && !cancelled()
&& fromJSON(inputs.machines)[0] != null
&& fromJSON(inputs.bake_targets)[0] != null
}}
name: >
${{matrix.bake_target}}
${{matrix.cargo_profile}}