diff --git a/action.yml b/action.yml index 7ca9ea0..4f7cc69 100644 --- a/action.yml +++ b/action.yml @@ -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' diff --git a/lib/main.js b/lib/main.js index 69f5a75..76d52c0 100644 --- a/lib/main.js +++ b/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) { diff --git a/src/main.ts b/src/main.ts index 4db632a..3984b4d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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);