mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 22:37:29 +00:00
12_collect_diagnostics.sh now ends with an explicit `exit 0` so the diagnostic step never propagates a non-zero rc to GitHub Actions. zip_swarm_for_upload.sh switches from `set -euo pipefail` to `set +e` plus a trailing `exit 0` for the same reason. Keeps the workflow's red tab on the actual failing step instead of doubling up on the post-mortem collectors. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
13 lines
233 B
Bash
Executable File
13 lines
233 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set +e
|
|
|
|
: "${APP_ID:?APP_ID is required (matrix.apps)}"
|
|
|
|
out="/tmp/inventory-swarm-${APP_ID}.zip"
|
|
if [[ -d /tmp/inv ]]; then
|
|
(cd /tmp && zip -r "${out}" inv)
|
|
else
|
|
echo "No inventory found at /tmp/inv"
|
|
fi
|
|
exit 0
|