Added support for #27 and #33.

Updated typescript
Updated googleapis
This commit is contained in:
Drew Heavner
2020-11-11 13:59:13 +00:00
committed by GitHub
parent bd487ef324
commit 422a77593f
93 changed files with 155674 additions and 106069 deletions

View File

@@ -26,6 +26,7 @@ export interface EditOptions {
userFraction?: number;
whatsNewDir?: string;
mappingFile?: string;
name?: string;
}
export async function uploadToPlayStore(options: EditOptions, releaseFiles: string[]): Promise<string | undefined> {
@@ -143,8 +144,10 @@ async function addReleasesToTrack(appEdit: AppEdit, options: EditOptions, versio
track: options.track,
releases: [
{
name: options.name,
userFraction: options.userFraction,
status: status,
inAppUpdatePriority: options.inAppUpdatePriority,
releaseNotes: await readLocalizedReleaseNotes(options.whatsNewDir),
versionCodes: versionCodes.filter(x => x != 0).map(x => x.toString())
}

View File

@@ -13,6 +13,7 @@ async function run() {
const serviceAccountJsonRaw = core.getInput('serviceAccountJsonPlainText', { required: false});
const packageName = core.getInput('packageName', { required: true });
const releaseFiles = core.getInput('releaseFiles', { required: true }).split(',').filter(x => x !== '');
const releaseName = core.getInput('releaseName', { required: false });
const track = core.getInput('track', { required: true });
const inAppUpdatePriority = core.getInput('inAppUpdatePriority', { required: false });
const userFraction = core.getInput('userFraction', { required: false });
@@ -92,7 +93,8 @@ async function run() {
inAppUpdatePriority: inAppUpdatePriorityInt || 0,
userFraction: userFractionFloat,
whatsNewDir: whatsNewDir,
mappingFile: mappingFile
mappingFile: mappingFile,
name: releaseName
}, releaseFiles);
console.log(`Finished uploading to the Play Store`)