mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-29 10:06:07 +00:00
Allow using rebar3 nightly builds (#84)
This commit is contained in:
committed by
GitHub
parent
e6ab31075d
commit
c71c5c91bb
+6
-1
@@ -113,9 +113,14 @@ async function maybeInstallGleam(gleamSpec) {
|
||||
|
||||
async function maybeInstallRebar3(rebar3Spec) {
|
||||
let installed = false
|
||||
let rebar3Version
|
||||
|
||||
if (rebar3Spec) {
|
||||
const rebar3Version = await getRebar3Version(rebar3Spec)
|
||||
if (rebar3Spec === 'nightly') {
|
||||
rebar3Version = 'nightly'
|
||||
} else {
|
||||
rebar3Version = await getRebar3Version(rebar3Spec)
|
||||
}
|
||||
console.log(`##[group]Installing rebar3 ${rebar3Version}`)
|
||||
await installer.installRebar3(rebar3Version)
|
||||
core.setOutput('rebar3-version', rebar3Version)
|
||||
|
||||
Reference in New Issue
Block a user