add support for master channel
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user