Update to ensure latest version of toolchain
This commit is contained in:
parent
7b201a613e
commit
c5f5da5693
@ -4,7 +4,7 @@ author: 'Héctor Ramón'
|
||||
inputs:
|
||||
rust-version:
|
||||
description: 'The toolchain name, such as stable, nighly, or 1.8.0'
|
||||
default: '1.37.0'
|
||||
default: 'stable'
|
||||
runs:
|
||||
using: 'node12'
|
||||
main: 'lib/main.js'
|
||||
|
@ -25,6 +25,7 @@ function run() {
|
||||
if (version) {
|
||||
yield rustup.install(version);
|
||||
exec.exec('rustup', ['default', version]);
|
||||
exec.exec('rustup', ['update', version]);
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
|
@ -11,6 +11,7 @@ async function run() {
|
||||
await rustup.install(version);
|
||||
|
||||
exec.exec('rustup', ['default', version]);
|
||||
exec.exec('rustup', ['update', version]);
|
||||
}
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
|
Loading…
Reference in New Issue
Block a user