This commit is contained in:
Opportunity
2019-09-30 13:04:06 +08:00
Unverified
parent 134c55a8c6
commit cf5188b310
+6 -7
View File
@@ -1,17 +1,16 @@
import * as core from '@actions/core';
import * as path from 'path';
import { exec, execSync } from 'child_process';
const core = require('@actions/core')
const { exec, execSync } = require('child_process')
async function run() {
try {
const version = core.getInput('xmake-version');
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");
core.addPath("/home/runner/.local/bin")
} catch (error) {
core.setFailed(error.message);
core.setFailed(error.message)
}
}
run();
run()