An open API service indexing awesome lists of open source software.

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.

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
```