neiam /action-setup-beam
action-setup-beam
public · Issues · Pulls · Labels · Forks · Compare · Actions queued
⭐
Log in to mark this repository.
Fix install-hex / install-rebar
3f15364 · Eric Meadows-Jönsson · 2020-01-23 21:52
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: 0557788