mirror of
https://github.com/subosito/flutter-action.git
synced 2024-08-16 10:19:50 +02:00
handle 1.7 as 1.7.x
This commit is contained in:
parent
5fe8a7cf47
commit
a1e481922d
2 changed files with 10 additions and 0 deletions
|
@ -49,6 +49,10 @@ if (!tempDirectory) {
|
|||
}
|
||||
function getFlutter(version, channel) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const versionPart = version.split('.');
|
||||
if (versionPart[1] == null || versionPart[2] == null) {
|
||||
version = version.concat('.x');
|
||||
}
|
||||
version = yield determineVersion(version, channel);
|
||||
let cleanver = `${version.replace('+', '-')}-${channel}`;
|
||||
let toolPath = tc.find('flutter', cleanver);
|
||||
|
|
|
@ -36,6 +36,12 @@ export async function getFlutter(
|
|||
version: string,
|
||||
channel: string
|
||||
): Promise<void> {
|
||||
const versionPart = version.split('.');
|
||||
|
||||
if (versionPart[1] == null || versionPart[2] == null) {
|
||||
version = version.concat('.x');
|
||||
}
|
||||
|
||||
version = await determineVersion(version, channel);
|
||||
|
||||
let cleanver = `${version.replace('+', '-')}-${channel}`;
|
||||
|
|
Loading…
Reference in a new issue