Skip store listing patch if it's empty
This commit is contained in:
Родитель
65d9384a1f
Коммит
9ddbeafb25
|
@ -607,13 +607,22 @@ async function addLanguageListing(edits: any, languageCode: string, directory: s
|
|||
(!listingResource.shortDescription) ||
|
||||
(!listingResource.title);
|
||||
|
||||
let isEmpty:boolean = (!listingResource.fullDescription) &&
|
||||
(!listingResource.shortDescription) &&
|
||||
(!listingResource.video) &&
|
||||
(!listingResource.title);
|
||||
|
||||
let listingRequestParameters: PackageParams = {
|
||||
language: languageCode,
|
||||
resource: createListingResource(languageCode, directory)
|
||||
};
|
||||
|
||||
try {
|
||||
if (isPatch) {
|
||||
|
||||
if (isEmpty) {
|
||||
tl.debug(`Skip localized ${languageCode} store listing.`);
|
||||
tl.debug('Request Parameters: ' + JSON.stringify(listingRequestParameters));
|
||||
} else if (isPatch) {
|
||||
tl.debug(`Patching an existing localized ${languageCode} store listing.`);
|
||||
tl.debug('Request Parameters: ' + JSON.stringify(listingRequestParameters));
|
||||
await edits.listings.patchAsync(listingRequestParameters);
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"version": {
|
||||
"Major": "1",
|
||||
"Minor": "117",
|
||||
"Patch": "3"
|
||||
"Patch": "4"
|
||||
},
|
||||
"minimumAgentVersion": "1.83.0",
|
||||
"groups": [
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"version": {
|
||||
"Major": "1",
|
||||
"Minor": "117",
|
||||
"Patch": "3"
|
||||
"Patch": "4"
|
||||
},
|
||||
"minimumAgentVersion": "1.83.0",
|
||||
"groups": [
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "vso-android-extension",
|
||||
"version": "1.117.3",
|
||||
"version": "1.117.4",
|
||||
"description": "Provides build/release tasks that enable performing continuous delivery to the Google Play store from an automated VSTS build or release definition.",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"manifestVersion": 1.0,
|
||||
"id": "google-play",
|
||||
"name": "Google Play",
|
||||
"version": "1.117.3",
|
||||
"version": "1.117.4",
|
||||
"publisher": "ms-vsclient",
|
||||
"description": "Provides tasks for continuous delivery to the Google Play Store from TFS/Team Services build or release definitions",
|
||||
"categories": [
|
||||
|
|
Загрузка…
Ссылка в новой задаче