mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
Group the shell helpers under scripts/github/ into five subfolders that match how the workflow files consume them: runner/ host-runner hygiene (disk, swap, Docker daemon, diagnostics) cancel/ run cancellation on PR-close and branch-delete events resolve/ derivation of workflow inputs and outputs from repo state update/ scheduled Update: Versions pipeline release/ release-time gates Drop the now-redundant subfolder prefix from each filename, e.g. dump_runner_state.sh becomes dump_state.sh and cancel_pull_request_runs.sh becomes pull_request_runs.sh. Each subfolder carries a README that describes its scope per documentation.md rules; the top-level README points at the subfolders without inventorying files. Propagate the new paths through ten workflow files, three docs (workflow.md, pipeline.md, secrets.md), and two tests. Fix a real runtime bug in enlarge_swap.sh, which still referenced the pre-rename dump_runner_state.sh path. Extend the inline-block-size lint hint to describe the new subfolder convention. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
28 lines
776 B
Bash
Executable File
28 lines
776 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:
|
|
# release_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)"
|
|
distros="$(_helpers/scripts/meta/resolve/distros.sh)"
|
|
|
|
{
|
|
echo "version_tag=${version_tag}"
|
|
echo "distros=${distros}"
|
|
echo "repo_prefix=${repo_prefix}"
|
|
echo "owner=${owner}"
|
|
} >>"$GITHUB_OUTPUT"
|