add support for master channel

This commit is contained in:
Alif Rachmawadi
2020-10-08 04:36:23 +00:00
parent 26bf50084a
commit d7578c4eec
3 changed files with 42 additions and 4 deletions

View File

@@ -6,6 +6,14 @@ async function run() {
const version = core.getInput('flutter-version') || '';
const channel = core.getInput('channel') || 'stable';
if (channel == 'master' && version != '') {
core.setFailed(
'using `flutter-version` with master channel is not supported.'
);
return;
}
await installer.getFlutter(version, channel);
} catch (error) {
core.setFailed(error.message);