Files
flutter-action/src/index.ts

16 lines
381 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 18:30:17 +07:00
const version = core.getInput('version', {required: false}) || '';
2019-08-13 17:11:30 +07:00
const channel = core.getInput('channel', {required: false}) || 'stable';
await installer.getFlutter(version, channel);
} catch (error) {
core.setFailed(error.message);
}
}
run();