From cf5188b310e9ce7f5334b95380bf14d82c32ccab Mon Sep 17 00:00:00 2001 From: Opportunity Date: Mon, 30 Sep 2019 13:04:06 +0800 Subject: [PATCH] fix --- index.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index 45122e9..ce61f16 100644 --- a/index.js +++ b/index.js @@ -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(); \ No newline at end of file +run() \ No newline at end of file