initial commit

This commit is contained in:
Alif Rachmawadi
2019-08-13 17:11:30 +07:00
commit 3aa0d2f642
188 changed files with 19613 additions and 0 deletions

19
src/index.ts Normal file
View File

@@ -0,0 +1,19 @@
import * as core from '@actions/core';
import * as installer from './installer';
import * as path from 'path';
async function run() {
try {
const version = core.getInput('version', {required: true});
const channel = core.getInput('channel', {required: false}) || 'stable';
await installer.getFlutter(version, channel);
const matchersPath = path.join(__dirname, '..', '.github');
console.log(`##[add-matcher]${path.join(matchersPath, 'flutter.json')}`);
} catch (error) {
core.setFailed(error.message);
}
}
run();