Skip to content

Support absolute paths in node-version-file - #1633

Open
v-mahabaleshwars wants to merge 2 commits into
actions:mainfrom
v-mahabaleshwars:feature/node-version-file-absolute-paths
Open

v-mahabaleshwars wants to merge 2 commits into
actions:mainfrom
v-mahabaleshwars:feature/node-version-file-absolute-paths

Conversation

@v-mahabaleshwars

Copy link
Copy Markdown
Contributor

Description:
Use path.resolve instead of path.join so an absolute node-version-file input is used as-is. Relative paths still resolve against GITHUB_WORKSPACE.

Related issue:
#852

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

@v-mahabaleshwars
v-mahabaleshwars requested a review from a team as a code owner September 21, 2026 10:11
Copilot AI lite review requested due to automatic review settings September 21, 2026 10:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

All reviewed changes are covered by documentation, tests, and the updated bundle.

Review effort: Lite
Findings: None

What changed in this PR

Updates node-version-file handling to support absolute paths while preserving workspace-relative resolution.

Changes:

  • Uses path.resolve in source and bundled output.
  • Documents path resolution behavior.
  • Adds tests for relative and absolute paths.
File Summary
src/​main.ts Resolves version-file paths correctly.
docs/​advanced-usage.md Documents path resolution behavior.
dist/​setup/​index.js Updates the packaged action bundle.
__tests__/​main.test.ts Covers relative and absolute paths.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@v-mahabaleshwars v-mahabaleshwars self-assigned this Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants