add any channel

This commit is contained in:
Dmitry Shibanov
2020-11-23 16:11:57 +03:00
parent d141f1640a
commit d8b5280c4b
3 changed files with 75 additions and 15 deletions

View File

@@ -13,15 +13,23 @@ export async function getFlutter(
const platform = release.getPlatform();
const useMaster = channel == 'master';
const {version: selected, downloadUrl} = await release.determineVersion(
const {
version: selected,
downloadUrl,
channel: validatedChannel
} = await release.determineVersion(
version,
useMaster ? 'dev' : channel,
platform
);
if (channel !== validatedChannel) {
core.debug(`Channel was identifyed as ${validatedChannel}`);
}
let cleanver = useMaster
? channel
: `${selected.replace('+', '-')}-${channel}`;
? validatedChannel
: `${selected.replace('+', '-')}-${validatedChannel}`;
let toolPath = tc.find('flutter', cleanver);