mirror of
https://github.com/subosito/flutter-action.git
synced 2024-08-16 10:19:50 +02:00
use flutter-version instead of version
This commit is contained in:
parent
01ee38751a
commit
ad169ccdaa
3 changed files with 9 additions and 5 deletions
|
@ -2,13 +2,16 @@ name: 'Flutter Action'
|
|||
description: 'Setup your runner with Flutter environment'
|
||||
author: 'Alif Rachmawadi'
|
||||
inputs:
|
||||
version:
|
||||
flutter-version:
|
||||
description: 'The Flutter version to make available on the path'
|
||||
required: false
|
||||
channel:
|
||||
description: 'The Flutter build release channel'
|
||||
required: false
|
||||
default: 'stable'
|
||||
# Deprecated option, do not use. Will not be supported after October 1, 2019
|
||||
version:
|
||||
description: 'Deprecated. Use flutter-version instead. Will not be supported after October 1, 2019'
|
||||
runs:
|
||||
using: 'node12'
|
||||
main: 'lib/index.js'
|
||||
|
|
|
@ -20,8 +20,8 @@ const installer = __importStar(require("./installer"));
|
|||
function run() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
const version = core.getInput('version', { required: false }) || '';
|
||||
const channel = core.getInput('channel', { required: false }) || 'stable';
|
||||
const version = core.getInput('version') || core.getInput('flutter-version') || '';
|
||||
const channel = core.getInput('channel') || 'stable';
|
||||
yield installer.getFlutter(version, channel);
|
||||
}
|
||||
catch (error) {
|
||||
|
|
|
@ -3,8 +3,9 @@ import * as installer from './installer';
|
|||
|
||||
async function run() {
|
||||
try {
|
||||
const version = core.getInput('version', {required: false}) || '';
|
||||
const channel = core.getInput('channel', {required: false}) || 'stable';
|
||||
const version =
|
||||
core.getInput('version') || core.getInput('flutter-version') || '';
|
||||
const channel = core.getInput('channel') || 'stable';
|
||||
|
||||
await installer.getFlutter(version, channel);
|
||||
} catch (error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue