From 039a4219ddf68b688d09990fb7eb7e6d5225ea67 Mon Sep 17 00:00:00 2001 From: Eric Fitzgerald Date: Thu, 2 Jul 2026 19:52:35 -0400 Subject: [PATCH] fix(ci): don't fail deps-bump discover when the branch list is empty On the daily schedule with no open Dependabot alerts, LIST is empty and `grep -v '^$'` matched no lines, exiting 1. Under `set -euo pipefail` that aborted the discover step, turning the intended no-op run red (run 28594307464). Drop grep and filter empties in jq instead, matching the fix already in the tmi-ux repo so both workflows stay harmonized. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01Kk9GxWS9EpazjbwBKfMpUX --- .github/workflows/deps-bump.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deps-bump.yml b/.github/workflows/deps-bump.yml index 717db086..2b605a1e 100644 --- a/.github/workflows/deps-bump.yml +++ b/.github/workflows/deps-bump.yml @@ -62,7 +62,7 @@ jobs: else LIST="$(all_branches)" # weekly schedule, or dispatch with branch=all fi - BRANCHES="$(printf '%s\n' "$LIST" | grep -v '^$' | jq -R . | jq -cs .)" + BRANCHES="$(printf '%s\n' "$LIST" | jq -R . | jq -cs 'map(select(length > 0))')" echo "branches=$BRANCHES" >> "$GITHUB_OUTPUT" echo "Discovered branches: $BRANCHES"