manualExit suppresses -quit, useful for buildMethods with async calls (#574)

* `manualExit` suppresses `-quit`, useful for buildMethods with async calls

* Use boolean
This commit is contained in:
Toby Harris
2023-09-20 22:41:17 +01:00
committed by GitHub
parent 2190fd5667
commit a13443a746
8 changed files with 39 additions and 2 deletions

6
dist/index.js generated vendored
View File

@@ -265,6 +265,7 @@ class BuildParameters {
buildFile,
buildMethod: input_1.default.buildMethod,
buildVersion,
manualExit: input_1.default.manualExit,
androidVersionCode,
androidKeystoreName: input_1.default.androidKeystoreName,
androidKeystoreBase64: input_1.default.androidKeystoreBase64,
@@ -6269,6 +6270,7 @@ class ImageEnvironmentFactory {
{ name: 'BUILD_PATH', value: parameters.buildPath },
{ name: 'BUILD_FILE', value: parameters.buildFile },
{ name: 'BUILD_METHOD', value: parameters.buildMethod },
{ name: 'MANUAL_EXIT', value: parameters.manualExit },
{ name: 'VERSION', value: parameters.buildVersion },
{ name: 'ANDROID_VERSION_CODE', value: parameters.androidVersionCode },
{ name: 'ANDROID_KEYSTORE_NAME', value: parameters.androidKeystoreName },
@@ -6828,6 +6830,10 @@ class Input {
static get buildMethod() {
return Input.getInput('buildMethod') || ''; // Processed in docker file
}
static get manualExit() {
const input = Input.getInput('manualExit') || false;
return input === 'true';
}
static get customParameters() {
return Input.getInput('customParameters') || '';
}