Have the action output a versioning element so it could be used as part of the cache restore key (#239)

* Do a bit of YAMLlint'ing

* Ease consumer cache invalidation

By providing an output with the action version we ease
cache invalidation on consumer, due to the fact we can
now stop worrying about changes to the action's cache itself

Might also be interesting for self-hosted runners...

* Remove duplicates

* Do further validations for robustness
This commit is contained in:
Paulo F. Oliveira
2024-01-12 19:46:16 +00:00
committed by GitHub
parent a34c98fd51
commit 4678b57fab
6 changed files with 54 additions and 20 deletions
+4
View File
@@ -9868,6 +9868,10 @@ async function main() {
await maybeInstallGleam(gleamSpec)
await maybeInstallRebar3(rebar3Spec)
// undefined is replaced by a function, post- main branch merge
const setupBeamVersion = 'undefined'
core.setOutput('setup-beam-version', setupBeamVersion)
}
async function installOTP(otpSpec, osVersion) {