Skip to content

Commit

Permalink
export run
Browse files Browse the repository at this point in the history
  • Loading branch information
MSP-Greg authored and eregon committed Mar 28, 2020
1 parent c33236e commit d785726
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down Expand Up @@ -121,4 +121,4 @@ function findUbuntuVersion() {
}
}

run()
if (__filename.endsWith('index.js')) { run() }

0 comments on commit d785726

Please sign in to comment.