refactor(ci): extract app-discovery output logic into script

Inline shell duplicated across four deploy workflows. Single
source now in scripts/github/output_apps.sh.
This commit is contained in:
Environment Test committed 2026-04-13 13:25:25 +02:00
1 parent 8946ea0461
commit f3d67ecb38
5 files changed
+19 -28

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# scripts/github/output_apps.sh
#
# Resolve the app list and write it to GITHUB_OUTPUT.
# Inputs via env (forwarded to scripts/meta/resolve/apps.sh):
# TEST_DEPLOY_TYPE — required (server|workstation|universal)
# WHITELIST — optional space-separated allowlist
set -euo pipefail
apps="$(./scripts/meta/resolve/apps.sh)"
[[ -n "$apps" ]] || apps='[]'
echo "apps=$apps" >>"$GITHUB_OUTPUT"
echo "apps_json=$apps" >>"$GITHUB_OUTPUT"
echo "apps_json=$apps"