This commit is contained in:
Opportunity
2019-09-30 11:51:54 +08:00
Unverified
commit 134c55a8c6
5 changed files with 380 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import * as core from '@actions/core';
import * as path from 'path';
import { exec, execSync } from 'child_process';
async function run() {
try {
const version = core.getInput('xmake-version');
execSync("bash <(curl -fsSL https://raw.githubusercontent.com/tboox/xmake/master/scripts/get.sh)")
core.addPath("/home/runner/.local/bin");
} catch (error) {
core.setFailed(error.message);
}
}
run();