From d785726c7f5d2c768a54faa154b015b34ac6ebb0 Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Sat, 28 Mar 2020 08:56:35 -0500 Subject: [PATCH] export run --- dist/index.js | 7 +++++-- index.js | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 6fa2359..761cd5f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -951,8 +951,11 @@ module.exports = require("os"); /***/ }), /***/ 104: -/***/ (function(__unusedmodule, __unusedexports, __webpack_require__) { +/***/ (function(__unusedmodule, __webpack_exports__, __webpack_require__) { +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "run", function() { return run; }); const os = __webpack_require__(87) const fs = __webpack_require__(747) const path = __webpack_require__(622) @@ -1076,7 +1079,7 @@ function findUbuntuVersion() { } } -run() +if (__filename.endsWith('index.js')) { run() } /***/ }), diff --git a/index.js b/index.js index fadb979..524ba4a 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ const fs = require('fs') const path = require('path') const core = require('@actions/core') -async function run() { +export async function run() { try { const platform = getVirtualEnvironmentName() const [engine, version] = parseRubyEngineAndVersion(core.getInput('ruby-version')) @@ -121,4 +121,4 @@ function findUbuntuVersion() { } } -run() +if (__filename.endsWith('index.js')) { run() }