mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 02:54:26 +00:00
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>
31 lines
889 B
Bash
Executable File
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"
|