Files
computer-playbook/scripts/github/resolve/release/inputs.sh
kevinveenbirkenbachandClaude Opus 5 2fd06d1b93 refactor(ci): move release_inputs into release/
Two scripts sharing a delimiter-bounded name prefix are a folder in disguise, and tests/lint/repository/structure/test_prefix_grouped_files.py refuses them. A second release_* resolver is coming, so give the group its directory now and drop the prefix from the name.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-20 14:23:29 +02:00

31 lines
889 B
Bash
Executable File

#!/usr/bin/env bash
#
# Resolve the release-version workflow's `vars` step output: validates
# the `tag` input, then queries the meta resolvers for owner / repo
# prefix / distro list and emits all four as GITHUB_OUTPUT lines.
#
# Usage:
# inputs.sh VERSION_TAG
# Requires GITHUB_OUTPUT to be exported (provided by the runner).
set -euo pipefail
version_tag="$1"
[[ -n "$version_tag" ]] || {
echo "ERROR: tag input is required"
exit 1
}
owner="$(_helpers/scripts/meta/resolve/repository/owner.sh)"
repo_prefix="$(_helpers/scripts/meta/resolve/repository/name.sh)"
# shellcheck source=scripts/meta/env/load.sh
# shellcheck disable=SC1091
source "_helpers/scripts/meta/env/load.sh"
: "${INFINITO_DISTROS:?Missing INFINITO_DISTROS}"
{
echo "version_tag=${version_tag}"
echo "distros=${INFINITO_DISTROS}"
echo "repo_prefix=${repo_prefix}"
echo "owner=${owner}"
} >>"$GITHUB_OUTPUT"