Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marocchino/tool-versions-action
output version numbers with .tool-versions file.
https://github.com/marocchino/tool-versions-action
actions asdf asdf-vm github-actions
Last synced: 24 days ago
JSON representation
output version numbers with .tool-versions file.
- Host: GitHub
- URL: https://github.com/marocchino/tool-versions-action
- Owner: marocchino
- License: mit
- Created: 2019-11-01T01:01:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-03T16:17:15.000Z (about 1 month ago)
- Last Synced: 2024-10-06T19:04:33.482Z (about 1 month ago)
- Topics: actions, asdf, asdf-vm, github-actions
- Language: JavaScript
- Homepage:
- Size: 1.16 MB
- Stars: 17
- Watchers: 3
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Usage
### Pre-requisites
Create a workflow `.yml` file in your repositories `.github/workflows` directory. An [example workflow](#example-workflow) is available below. For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file).
### Inputs
- `path` - path of .tool-versions file, `.tool-versions` by default
### Outputs
Basically, It could be any values depending on your `.tool-versions`.
You can find full asdf plugins list on [here](https://github.com/asdf-vm/asdf-plugins).### Example workflow
```yaml
name: Get version info from tool-versionson: push
jobs:
build:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v3
- name: Read .tool-versions
uses: marocchino/tool-versions-action@v1
id: versions
- name: Use Node.js ${{ steps.versions.outputs.nodejs }}
uses: actions/setup-node@v3
with:
node-version: ${{ steps.versions.outputs.nodejs }}
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: ${{ fromJSON(steps.versions.outputs.hugo).version }}
extended: ${{ fromJSON(steps.versions.outputs.hugo).is_extended }}
```## License
The scripts and documentation in this project are released under the [MIT License](LICENSE)