Skip to content

feat: add version_file input to read the kind version from a file#162

Open
somaz94 wants to merge 1 commit into
helm:mainfrom
somaz94:feat/version-file
Open

feat: add version_file input to read the kind version from a file#162
somaz94 wants to merge 1 commit into
helm:mainfrom
somaz94:feat/version-file

Conversation

@somaz94

@somaz94 somaz94 commented Jun 12, 2026

Copy link
Copy Markdown

Adds a version_file input that reads the kind version from a file, so the
version can live in a single source of truth (for example an asdf
.tool-versions file) instead of being hard-coded in the workflow.

  • Supports the asdf .tool-versions layout (the kind entry) and plain
    version files.
  • The version is used as-is (include the leading v, e.g. v0.31.0),
    consistent with the existing version input.
  • When both are set, version_file takes precedence over version.

Validation

  • Added a test-with-version-file job that writes kind v0.23.0 to a
    .tool-versions file and asserts the installed kind version is v0.23.0
    (the action default is v0.31.0, so the assertion proves the file drove
    the install).
  • Unit-tested the resolver against: asdf multi-tool file, plain version file,
    comment/blank-line file, extra whitespace, CRLF endings, multi-token line,
    missing file, empty file.
  • bash -n main.sh passes.

This PR was prepared with AI assistance (Claude Code). All changes were
reviewed and tested by me before submission.

Signed-off-by: somaz <genius5711@gmail.com>
@somaz94 somaz94 force-pushed the feat/version-file branch from 51b743d to 335bb70 Compare June 12, 2026 03:52
somaz94 added a commit to somaz94/somaz94 that referenced this pull request Jun 12, 2026
@somaz94 somaz94 marked this pull request as ready for review June 12, 2026 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant