mirror of
https://github.com/julia-actions/setup-julia.git
synced 2026-02-12 11:06:53 +08:00
Don't show versioninfo() by default (#25)
* Only show versioninfo() in debug mode * Add input to specify if versioninfo() is displayed * No access to secrets
This commit is contained in:
8
lib/setup-julia.js
generated
8
lib/setup-julia.js
generated
@@ -43,8 +43,12 @@ function run() {
|
||||
}
|
||||
// Add it to PATH
|
||||
core.addPath(path.join(juliaPath, 'bin'));
|
||||
// Test if Julia has been installed by showing versioninfo()
|
||||
yield exec.exec('julia', ['-e', 'using InteractiveUtils; versioninfo()']);
|
||||
// Test if Julia has been installed
|
||||
exec.exec('julia', ['--version']);
|
||||
// If enabled, also show the full version info
|
||||
if (core.getInput('show-versioninfo') == 'true') {
|
||||
exec.exec('julia', ['-e', 'using InteractiveUtils; versioninfo()']);
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
core.setFailed(error.message);
|
||||
|
||||
Reference in New Issue
Block a user