Merge pull request #15 from ericmj/patch-2

67712d1 · Jonathan Clem · 2020-05-14 17:44

1 files +5 -5
Message
{commit_body(@commit)}

Files changed

modified src/setup-elixir.js
+5 −5
@@ -21,9 +21,9 @@ async function main() {
21 21 )
22 22
23 23 let installHex = core.getInput('install-hex')
24 installHex = installHex == null ? true : installHex
24 + installHex = installHex == null ? 'true' : installHex
25 25 let installRebar = core.getInput('install-rebar')
26 installRebar = installRebar == null ? true : installRebar
26 + installRebar = installRebar == null ? 'true' : installRebar
27 27
28 28 console.log(`##[group]Installing OTP ${otpVersion}`)
29 29 await installOTP(otpVersion)
@@ -33,10 +33,10 @@ async function main() {
33 33 await installElixir(elixirVersion, otpMajor)
34 34 console.log(`##[endgroup]`)
35 35
36 process.env.PATH = `/tmp/.setup-elixir/elixir/bin:${process.env.PATH}`
36 + process.env.PATH = `/tmp/.setup-elixir/elixir/bin:/tmp/.setup-elixir/otp/bin:${process.env.PATH}`
37 37
38 if (installRebar) await exec('mix local.rebar --force')
39 if (installHex) await exec('mix local.hex --force')
38 + if (installRebar === 'true') await exec('mix local.rebar --force')
39 + if (installHex === 'true') await exec('mix local.hex --force')
40 40
41 41 const matchersPath = path.join(__dirname, '..', '.github')
42 42 console.log(`##[add-matcher]${path.join(matchersPath, 'elixir.json')}`)

Parents: 6cbe433 1aaf342