Improve example version instructions. Add info about "lts" if user specifies 1.6 explicitly (#265)

* improve example versions and note

* add info if user explicitly sets version to 1.6

* npm run build

* add 1.6 explicitly to CI

* convert to a github actions notice

* try core.notice

* npm run build

* Apply suggestions from code review

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>

* Update action.yml

* update example

* update toc

* npm build

---------

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
This commit is contained in:
Ian Butterworth
2024-07-21 11:11:51 -04:00
committed by GitHub
parent 5956f5ed17
commit 0c4130534d
5 changed files with 29 additions and 14 deletions

View File

@@ -53,6 +53,9 @@ async function run() {
if (!versionInput) { // if `versionInput` is an empty string
throw new Error('Version input must not be null')
}
if (versionInput == '1.6') {
core.notice('[setup-julia] If you are testing 1.6 as a Long Term Support (lts) version, consider using the new "lts" version specifier instead of "1.6" explicitly, which will automatically resolve the current lts.')
}
if (!originalArchInput) { // if `originalArchInput` is an empty string
throw new Error(`Arch input must not be null`)
}