diff --git a/.github/nightly_matrix.php b/.github/nightly_matrix.php index 8e4e9e7606e..0fd712f29db 100644 --- a/.github/nightly_matrix.php +++ b/.github/nightly_matrix.php @@ -155,7 +155,7 @@ $branches = $branch === 'master' ? get_branches() : [['ref' => $branch, 'version' => get_current_version()]]; -$labels = json_decode($argv[4] ?? '[]', true); +$labels = json_decode($argv[4] ?? '[]', true) ?? []; $labels = array_column($labels, 'name'); $all_variations = $trigger === 'schedule' || $trigger === 'workflow_dispatch' || in_array('CI: All variations', $labels, true);