Add support for setting a working directory

This commit is contained in:
Chris Bailey
2020-04-18 13:22:34 +02:00
committed by Benoit Daloze
parent ec106b438a
commit 29eefdda13
3 changed files with 6 additions and 0 deletions
+4
View File
@@ -13,6 +13,10 @@ inputs:
description: 'The version of Bundler to install. Either none, 1, 2, latest or Gemfile.lock. The default tries Gemfile.lock and otherwise uses latest.'
required: false
default: 'default'
working-directory:
description: 'The working directory to use for this path. Useful if files like .ruby-version are somewhere other than the root of your repository. Defaults to leaving it unchanged.'
required: false
default: '.'
outputs:
ruby-prefix:
description: 'The prefix of the installed ruby'
Generated Vendored
+1
View File
@@ -965,6 +965,7 @@ const common = __webpack_require__(239)
async function run() {
try {
process.chdir(core.getInput('working-directory'))
const platform = common.getVirtualEnvironmentName()
const [engine, version] = parseRubyEngineAndVersion(core.getInput('ruby-version'))
+1
View File
@@ -7,6 +7,7 @@ const common = require('./common')
export async function run() {
try {
process.chdir(core.getInput('working-directory'))
const platform = common.getVirtualEnvironmentName()
const [engine, version] = parseRubyEngineAndVersion(core.getInput('ruby-version'))