Skip to content

Commit

Permalink
Merge pull request #6 from kuhnroyal/develop
Browse files Browse the repository at this point in the history
Release 0.0.3
  • Loading branch information
kuhnroyal authored Aug 20, 2021
2 parents 0696ffd + 22c2760 commit c9c8517
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,30 @@
# flutter-fvm-config-action
An action that parses an [FVM](https://github.com/leoafarias/fvm) config file into environment variables which can then be used to configure the [flutter-action](https://github.com/subosito/flutter-action).
An action that parses an [FVM](https://github.com/leoafarias/fvm) config file into environment variables which
can then be used to configure the [flutter-action](https://github.com/subosito/flutter-action).


## Usage

### Basic usage
```yaml
steps:
- uses: actions/checkout@v2
- uses: kuhnroyal/flutter-fvm-config-action@v1
- uses: subosito/flutter-action@v1
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: ${{ env.FLUTTER_CHANNEL }}
```
### Custom config path
```yaml
steps:
- uses: actions/checkout@v2
- uses: kuhnroyal/flutter-fvm-config-action@v1
with:
path: 'some-path/.fvm/fvm_config.json'
- uses: subosito/flutter-action@v1
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: ${{ env.FLUTTER_CHANNEL }}
```
8 changes: 6 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: 'Flutter FVM config action'
description: 'An action that parses an https://github.com/leoafarias/fvm config file into environment variables which can then be used to configure the https://github.com/subosito/flutter-action.'
description: 'Action that parses an FVM config file in order to configure the subosito/flutter-action.'
author: 'Peter Leibiger'
inputs:
path:
description: 'Path to the FVM config file'
required: false
default: '.fvm/fvm_config.json'
runs:
using: 'node12'
main: 'dist/index.js'
main: 'dist/index.js'
branding:
icon: 'maximize'
color: 'blue'

0 comments on commit c9c8517

Please sign in to comment.