use flutter-version instead of version

This commit is contained in:
Alif Rachmawadi
2019-08-16 19:14:55 +07:00
parent 01ee38751a
commit ad169ccdaa
3 changed files with 9 additions and 5 deletions

View File

@@ -3,8 +3,9 @@ import * as installer from './installer';
async function run() {
try {
const version = core.getInput('version', {required: false}) || '';
const channel = core.getInput('channel', {required: false}) || 'stable';
const version =
core.getInput('version') || core.getInput('flutter-version') || '';
const channel = core.getInput('channel') || 'stable';
await installer.getFlutter(version, channel);
} catch (error) {