export run

This commit is contained in:
MSP-Greg
2020-03-28 15:28:40 +01:00
committed by Benoit Daloze
parent c33236e6da
commit d785726c7f
2 changed files with 7 additions and 4 deletions
Generated Vendored
+5 -2
View File
@@ -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() }
/***/ }),
+2 -2
View File
@@ -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() }