mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 11:46:35 +00:00
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:
5 files changed
+19
-28
No files matched your search
Executable
+15
@@ -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"
|
||||
Reference in new issue
Block a user