neiam
/action-setup-beam
action-setup-beam
public · Issues · Pulls · Labels · Forks · Compare · Actions queued
⭐
Log in to mark this repository.
Change how we print installed Elixir version (#36)
e332dc6 · Wojtek Mach · 2021-05-26 11:29
Files changed
modified
dist/index.js
+4
−2
@@ -4780,11 +4780,13 @@ async function getElixirVersion(exSpec0, otpVersion) {
| 4780 | 4780 | if (elixirVersions.get(elixirVersion).includes(otpMatch[1])) { |
| 4781 | 4781 | // ... and it's available: use it! |
| 4782 | 4782 | elixirVersionWithOTP = `${elixirVersion}-otp-${otpVersionMajor}` |
| 4783 | − core.info(`Using Elixir / -otp- version ${elixirVersionWithOTP}`) | |
| 4783 | + core.info( | |
| 4784 | + `Using Elixir ${elixirVersion} (built for OTP ${otpVersionMajor})`, | |
| 4785 | + ) | |
| 4784 | 4786 | } else { |
| 4785 | 4787 | // ... and it's not available: fallback to the "generic" version (v1.4.5 only). |
| 4786 | 4788 | elixirVersionWithOTP = elixirVersion |
| 4787 | − core.info(`Using Elixir ${elixirVersionWithOTP}`) | |
| 4789 | + core.info(`Using Elixir ${elixirVersion}`) | |
| 4788 | 4790 | } |
| 4789 | 4791 | } else { |
| 4790 | 4792 | throw new Error( |
modified
src/setup-beam.js
+4
−2
@@ -144,11 +144,13 @@ async function getElixirVersion(exSpec0, otpVersion) {
| 144 | 144 | if (elixirVersions.get(elixirVersion).includes(otpMatch[1])) { |
| 145 | 145 | // ... and it's available: use it! |
| 146 | 146 | elixirVersionWithOTP = `${elixirVersion}-otp-${otpVersionMajor}` |
| 147 | − core.info(`Using Elixir / -otp- version ${elixirVersionWithOTP}`) | |
| 147 | + core.info( | |
| 148 | + `Using Elixir ${elixirVersion} (built for OTP ${otpVersionMajor})`, | |
| 149 | + ) | |
| 148 | 150 | } else { |
| 149 | 151 | // ... and it's not available: fallback to the "generic" version (v1.4.5 only). |
| 150 | 152 | elixirVersionWithOTP = elixirVersion |
| 151 | − core.info(`Using Elixir ${elixirVersionWithOTP}`) | |
| 153 | + core.info(`Using Elixir ${elixirVersion}`) | |
| 152 | 154 | } |
| 153 | 155 | } else { |
| 154 | 156 | throw new Error( |
Parents: b50aa18