Add support for setting a working directory
This commit is contained in:
committed by
Benoit Daloze
parent
ec106b438a
commit
29eefdda13
@@ -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.'
|
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
|
required: false
|
||||||
default: 'default'
|
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:
|
outputs:
|
||||||
ruby-prefix:
|
ruby-prefix:
|
||||||
description: 'The prefix of the installed ruby'
|
description: 'The prefix of the installed ruby'
|
||||||
|
|||||||
+1
@@ -965,6 +965,7 @@ const common = __webpack_require__(239)
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
try {
|
try {
|
||||||
|
process.chdir(core.getInput('working-directory'))
|
||||||
const platform = common.getVirtualEnvironmentName()
|
const platform = common.getVirtualEnvironmentName()
|
||||||
const [engine, version] = parseRubyEngineAndVersion(core.getInput('ruby-version'))
|
const [engine, version] = parseRubyEngineAndVersion(core.getInput('ruby-version'))
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ const common = require('./common')
|
|||||||
|
|
||||||
export async function run() {
|
export async function run() {
|
||||||
try {
|
try {
|
||||||
|
process.chdir(core.getInput('working-directory'))
|
||||||
const platform = common.getVirtualEnvironmentName()
|
const platform = common.getVirtualEnvironmentName()
|
||||||
const [engine, version] = parseRubyEngineAndVersion(core.getInput('ruby-version'))
|
const [engine, version] = parseRubyEngineAndVersion(core.getInput('ruby-version'))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user