Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.

Adds exact installed versions of Elixir and OTP as outputs #36

Merged
merged 7 commits into from
Aug 5, 2020

Conversation

doughsay
Copy link
Contributor

This adds the exact matched Elixir and OTP versions as outputs of the step. This allows subsequent steps to know which versions were installed if ranges were specified. e.g. specifying input elixir-version as "1.10.x" will add an output called elixir-version with the value "v1.10.4".

This could be useful for certain use-cases like cache busting. Using the OTP version in your cache key for example will help with not re-using caches for old OTP version, which can sometimes cause compilation problems.

I did a fresh checkout of this repo using nodejs v14.6.0, and just running yarn caused the lockfile to change a lot. I'm not really sure what's going on with that, this was an unintended consequence. Similarly, the compiled dist/index.js has a lot more changes in it than I expected as well... also not sure what's going on there. If someone could guide me in cleaning this PR up I would appreciate it!

@jclem
Copy link
Contributor

jclem commented Jul 26, 2020

Great idea. I'm out of office until mid-week and will take a look once I'm back.

@doughsay
Copy link
Contributor Author

doughsay commented Aug 3, 2020

Hi, sorry to bug; any chance we can get this looked at soon? Thanks! 😄

@jclem
Copy link
Contributor

jclem commented Aug 5, 2020

This is a great contribution. Thank you, @doughsay! I'm going to remove the yarn dependency from this, anyway, so don't worry about that.

@jclem jclem merged commit 96cd61e into actions:main Aug 5, 2020
@doughsay doughsay deleted the outputs branch August 5, 2020 17:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants