From 5fea73656882d896fa142a3201e7c9da0c0d0fbb Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Sat, 12 Dec 2020 11:04:57 -0600 Subject: [PATCH] Add `show-versioninfo` to README (#54) https://github.com/julia-actions/setup-julia/issues/51#issuecomment-743167978 --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 50d7ffa..5e682a2 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,21 @@ If your workflow requires access to secrets, you should always pin it to a commi This will protect you in case a bad actor gains access to the setup-julia repo. You can find more information in [GitHub's security hardening guide](https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions). +## versioninfo + +By default, only a brief version identifier is printed in the run log. You can display the full `versioninfo` by adding `show-versioninfo`. +Here's an example that prints this information just for `nightly`: + +```yaml + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + show-versioninfo: ${{ matrix.version == 'nightly' }} + ``` + +You use `'true'` if you want it printed for all Julia versions. + ## Debug logs You can enable [Step Debug Logs](https://github.com/actions/toolkit/blob/main/docs/action-debugging.md#step-debug-logs) for more detailed logs.