get latest release automatically

This commit is contained in:
Alif Rachmawadi
2019-08-16 18:30:17 +07:00
parent b14481040a
commit 39e54cc1e6
4 changed files with 98 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ const installer = __importStar(require("./installer"));
function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
const version = core.getInput('version', { required: true });
const version = core.getInput('version', { required: false }) || '';
const channel = core.getInput('channel', { required: false }) || 'stable';
yield installer.getFlutter(version, channel);
}