https://github.com/wasabeef/import-asdf-tool-versions-action
⚒️ Import .tool-versions of asdf to GitHub Actions workflows.
https://github.com/wasabeef/import-asdf-tool-versions-action
asdf flutter github-actions
Last synced: 7 months ago
JSON representation
⚒️ Import .tool-versions of asdf to GitHub Actions workflows.
- Host: GitHub
- URL: https://github.com/wasabeef/import-asdf-tool-versions-action
- Owner: wasabeef
- License: mit
- Created: 2023-01-25T11:51:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-12T10:59:59.000Z (7 months ago)
- Last Synced: 2025-03-17T20:43:46.751Z (7 months ago)
- Topics: asdf, flutter, github-actions
- Language: JavaScript
- Homepage:
- Size: 6.4 MB
- Stars: 17
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ⚒️ Import .tool-versions of asdf to GitHub Actions
Import `.tool-versions` of [asdf](https://asdf-vm.com/) to GitHub Actions workflows.
## Usage
```yaml
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: wasabeef/import-asdf-tool-versions-action@v1
id: asdf
# with:
# path: .tool-versions # Default
- name: Echo asdf
run: |
echo "${{ steps.asdf.outputs.flutter }}"
echo "${{ steps.asdf.outputs.dart }}"
echo "${{ steps.asdf.outputs.nodejs }}"
echo "${{ steps.asdf.outputs.gradle }}"
echo "${{ steps.asdf.outputs.java }}"
echo "${{ steps.asdf.outputs.kotlin }}"
```### Samples
Use with `subosito/flutter-action`
```yaml
- uses: wasabeef/import-asdf-tool-versions-action@v1
id: asdf
- uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: ${{ steps.asdf.outputs.flutter }}
cache: true
```