fix
This commit is contained in:
@@ -1,17 +1,16 @@
|
|||||||
import * as core from '@actions/core';
|
const core = require('@actions/core')
|
||||||
import * as path from 'path';
|
const { exec, execSync } = require('child_process')
|
||||||
import { exec, execSync } from 'child_process';
|
|
||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
try {
|
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)")
|
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) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
run();
|
run()
|
||||||
Reference in New Issue
Block a user