Files
flutter-action/src/index.ts
T

16 lines
351 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 {
2020-03-04 16:26:06 +00:00
const version = core.getInput('flutter-version') || '';
2019-08-16 19:14:55 +07:00
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();