Files
flutter-action/src/index.ts

17 lines
385 B
TypeScript
Raw Normal View History

2019-08-13 17:11:30 +07:00
import * as core from '@actions/core';
import * as installer from './installer';
async function run() {
try {
2019-08-16 19:14:55 +07:00
const version =
core.getInput('version') || core.getInput('flutter-version') || '';
const channel = core.getInput('channel') || 'stable';
2019-08-13 17:11:30 +07:00
await installer.getFlutter(version, channel);
} catch (error) {
core.setFailed(error.message);
}
}
run();