mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
The deploy-matrix discovery ran `python3 -m utils.github.variant_bundles` with the runner system python, which lacks PyYAML, so importing get_variants failed (ModuleNotFoundError: No module named yaml). Source scripts/meta/env/python.sh to use the venv `make install` populates (pip install -e . puts PyYAML there), matching how the rest of the toolchain resolves PYTHON. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
24 lines
758 B
Bash
Executable File
24 lines
758 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Resolve the app list and write it to GITHUB_OUTPUT.
|
|
# Inputs via env (forwarded to scripts/meta/resolve/apps.sh):
|
|
# INFINITO_DEPLOY_TYPE — required (server|workstation|universal)
|
|
# INFINITO_WHITELIST — optional space-separated allowlist
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
REPO_ROOT="$(cd "${SCRIPT_DIR}/../../.." && pwd)"
|
|
cd "${REPO_ROOT}"
|
|
|
|
# shellcheck source=scripts/meta/env/python.sh
|
|
source "${REPO_ROOT}/scripts/meta/env/python.sh"
|
|
|
|
apps="$(./scripts/meta/resolve/apps.sh)"
|
|
[[ -n "$apps" ]] || apps='[]'
|
|
|
|
matrix="$(printf '%s' "$apps" | "${PYTHON}" -m utils.github.variant_bundles)"
|
|
[[ -n "$matrix" ]] || matrix='[]'
|
|
|
|
echo "apps=$matrix" >>"$GITHUB_OUTPUT"
|
|
echo "apps=$matrix"
|