Try using for/of instead of for/in
This commit is contained in:
@@ -40,7 +40,7 @@ function uploadToPlayStore(options, releaseFiles) {
|
||||
// Check the 'track' for 'internalsharing', if so switch to a non-track api
|
||||
if (options.track === 'internalsharing') {
|
||||
core.debug("Track is Internal app sharing, switch to special upload api");
|
||||
for (const releaseFile in releaseFiles) {
|
||||
for (const releaseFile of releaseFiles) {
|
||||
core.debug(`Uploading ${releaseFile}`);
|
||||
yield uploadInternalSharingRelease(options, releaseFile).catch(reason => {
|
||||
core.setFailed(reason);
|
||||
@@ -61,7 +61,7 @@ function uploadToPlayStore(options, releaseFiles) {
|
||||
});
|
||||
// Upload artifacts to Google Play, and store their version codes
|
||||
var versionCodes = new Array();
|
||||
for (const releaseFile in releaseFiles) {
|
||||
for (const releaseFile of releaseFiles) {
|
||||
core.debug(`Uploading ${releaseFile}`);
|
||||
const versionCode = yield uploadRelease(appEdit.data, options, releaseFile).catch(reason => {
|
||||
core.setFailed(reason);
|
||||
|
||||
Reference in New Issue
Block a user