mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 14:34:21 +02:00
export run
This commit is contained in:
+5
-2
@@ -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() }
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
@@ -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() }
|
||||
|
||||
Reference in New Issue
Block a user