Await properly for commands to finish

This commit is contained in:
Héctor Ramón Jiménez
2019-08-15 23:32:28 +02:00
parent c5f5da5693
commit 5e61fdf6fd
2 changed files with 4 additions and 5 deletions

View File

@@ -24,8 +24,8 @@ function run() {
const version = core.getInput('rust-version');
if (version) {
yield rustup.install(version);
exec.exec('rustup', ['default', version]);
exec.exec('rustup', ['update', version]);
yield exec.exec('rustup', ['default', version]);
yield exec.exec('rustup', ['update', version]);
}
}
catch (error) {