Update dependencies (#282)

* Update packages

* Fix TS errors

* rebuild

* Update eslint

See https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md#version-800-2021-02-21

* Fix linting errors

* rebuild
This commit is contained in:
Matt Johnson-Pint
2022-10-27 22:54:00 -07:00
committed by GitHub
parent a47c099672
commit a4845e8d39
8 changed files with 4049 additions and 13597 deletions
+5 -5
View File
@@ -11,7 +11,7 @@ import {
checkForceAvdCreation,
checkChannel,
checkEnableHardwareKeyboard,
checkDiskSize
checkDiskSize,
} from './input-validator';
import { launchEmulator, killEmulator } from './emulator-manager';
import * as exec from '@actions/exec';
@@ -184,11 +184,11 @@ async function run() {
// use array form to avoid various quote escaping problems
// caused by exec(`sh -c "${preEmulatorLaunchScript}"`)
await exec.exec('sh', ['-c', preEmulatorLaunchScript], {
cwd: workingDirectory
cwd: workingDirectory,
});
}
} catch (error) {
core.setFailed(error.message);
core.setFailed(error instanceof Error ? error.message : (error as string));
}
console.log(`::endgroup::`);
}
@@ -225,7 +225,7 @@ async function run() {
await exec.exec('sh', ['-c', script]);
}
} catch (error) {
core.setFailed(error.message);
core.setFailed(error instanceof Error ? error.message : (error as string));
}
// finally kill the emulator
@@ -233,7 +233,7 @@ async function run() {
} catch (error) {
// kill the emulator so the action can exit
await killEmulator();
core.setFailed(error.message);
core.setFailed(error instanceof Error ? error.message : (error as string));
}
}