mirror of
https://github.com/reactivecircus/android-emulator-runner.git
synced 2026-08-31 17:49:33 +00:00
Fail action when script fails.
This commit is contained in:
+1
-1
@@ -64,7 +64,7 @@ function run() {
|
||||
yield exec.exec(`${script}`);
|
||||
}
|
||||
catch (error) {
|
||||
console.error(error.message);
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
// finally kill the emulator
|
||||
yield emulator_manager_1.killEmulator();
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ async function run() {
|
||||
try {
|
||||
await exec.exec(`${script}`);
|
||||
} catch (error) {
|
||||
console.error(error.message);
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
|
||||
// finally kill the emulator
|
||||
|
||||
Reference in New Issue
Block a user