-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support latest version tag #266
Comments
👋, @Schultzer. What would be considered And would we consider release candidates? In the meantime, I imagine using
is as close as it gets. (?) |
I’m currently building an integration test for @elixir-cldr, and I think if the tags are sorted by name, we would be able to get the latest major.minor.patch release regardless of when it was released. I have not tested this personally, but I would be surprised if it’s not possible even with JS sharp edges for sorting. I’m not interested in specifying anything other than the latest since that would mean that I’ll have to update the workflow every time there is a new release, which defeats the purpose of an early warning system. |
@Schultzer, what would be considered Edit: you can fetch |
I apologize for not being clear; RC is welcome but unnecessary. I mainly just wanted the highest major.minor.patch. I'll give the Edit: @paulo-ferraz-oliveira I looked at the source code, and it does not look like I could define the |
I mentioned this as such:
We can, if time allows, implement |
I was thinking about something like ---
"on": push
jobs:
example:
runs-on: ubuntu-22.04
steps:
- env:
GH_TOKEN: ${{ github.token }}
run: |
echo "otp-version=$(gh release view --repo erlang/otp --json tagName --jq .tagName)" >> "${GITHUB_OUTPUT}"
echo "elixir-version=$(gh release view --repo elixir-lang/elixir --json tagName --jq .tagName)" >> "${GITHUB_OUTPUT}"
id: latest-versions
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ steps.latest-versions.outputs.otp-version }}
elixir-version: ${{ steps.latest-versions.outputs.elixir-version }} A recent run chose latest as:
Of course, the semantics (and choice) of latest depend on the maintainers of the repo. not GitHub... Edit: this would be something the action would eventually do (instead of choosing the latest from the build lists it downloads), since it's probably not good to have semantics on "latest" in the action and not the origin repo. |
That's amazing, I ended up putting something together here: #267 |
Is your feature request related to a problem?
There is no way to specify the latest version, such as
ubuntu-latest
.Describe the feature you'd like
Being able to retrieve the latest version of Elixir and Erlang OTP:
Describe alternatives you've considered
Currently using main and maint, but those branches are in constant development, and I want to be able to test on the latest release.
The text was updated successfully, but these errors were encountered: