asdf-vm / asdf-vm/actions

Support custom paths for `.tool-versions`

Open
#586 0 comments 8 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
163
Forks
50
PR merge metrics
No merged PRs in 30d

Description

What do you think about supporting a GHA option to use a different file than the default `.tool-versions` ?

Example:

```
...
steps:
- uses: action/checkout@v4
- uses: asdf-vm/actions/install@v2
with:
tool-versions-path: ./my/custom/path/.tool-versions
```

or

```
...
steps:
- uses: action/checkout@v4
- uses: asdf-vm/actions/install@v2
with:
tool-versions-path: ./.tool-versions.ci
```

This will allow users to manage tools differently in CI to avoid installing unnecessary development dependencies that someone may only need on their local machine.

Do you think that could be possible?

Thanks 😄

Contributor guide

Open the contributing guide

Research direction

Start by tracing the asdf-vm/actions/install@v2 action and how it currently locates .tool-versions. Check the GitHub Actions input handling and workflow coverage, then define done as accepting tool-versions-path for both example paths while preserving the default behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, javascript
Domain
ci-cd, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.