@@ -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())
|
||||
}
|
||||
|
||||
@@ -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`)
|
||||
|
||||
Reference in New Issue
Block a user