erlef / setup-beam

Set up your BEAM-based GitHub Actions workflow (Erlang, Elixir, Gleam, ...)
MIT License
377 stars 50 forks source link

Identify Ubuntu version automatically? #279

Open evandam opened 4 months ago

evandam commented 4 months ago

Is your feature request related to a problem?

Not related to a problem, but it would be nice if we could avoid having to set the ImageOS env var and the action could detect it for us (at least some of the time).

Describe the feature you'd like

For Ubuntu-based runners (and possibly other Linux distros), it would be great if the action could just read from /etc/os-release things like ID=ubuntu and VERSION_ID=24.04 for example, rather than users setting ImageOS=ubuntu24 explicitly.

Describe alternatives you've considered

Setting ImageOS works, just a thought for a small improvement 😄

Additional context

Hopefully it makes sense and would be helpful!

paulo-ferraz-oliveira commented 4 months ago

Makes sense to me. The action could then throw only if you haven't been able to deduce it from the OS.