Skip to content

Commit

Permalink
Temporarily removing Excel Update
Browse files Browse the repository at this point in the history
  • Loading branch information
arshadparwaiz committed Jun 21, 2024
1 parent ffb858e commit 4a02347
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions actions/graybox/promote-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async function main(params) {

// Update Promote Status
const promoteTriggeredExcelValues = [['Promote triggered', toUTCStr(new Date()), '']];
await updateExcelTable(projectExcelPath, 'PROMOTE_STATUS', promoteTriggeredExcelValues);
// await updateExcelTable(projectExcelPath, 'PROMOTE_STATUS', promoteTriggeredExcelValues);

logger.info(`GB ROOT FOLDER ::: ${gbRootFolder}`);
logger.info(`GB EXP NAME ::: ${experienceName}`);
Expand Down Expand Up @@ -94,7 +94,7 @@ async function main(params) {
const sFailedPreviews = failedPreviews.length > 0 ? `Failed Previews(Promote won't happen for these): \n${failedPreviews.join('\n')}` : '';
const excelValues = [['Preview completed', toUTCStr(new Date()), sFailedPreviews]];
// Update Preview Status
await updateExcelTable(projectExcelPath, 'PROMOTE_STATUS', excelValues);
// await updateExcelTable(projectExcelPath, 'PROMOTE_STATUS', excelValues);

// Get the Helix Admin API Key for the Graybox content tree, needed for accessing (with auth) Images in graybox tree
const helixAdminApiKey = helixUtils.getAdminApiKey(true);
Expand All @@ -106,7 +106,7 @@ async function main(params) {
const sFailedPromoteStatuses = failedPromotes.length > 0 ? `Failed Promotes: \n${failedPromotes.join('\n')}` : '';
const promoteExcelValues = [['Promote completed', toUTCStr(new Date()), sFailedPromoteStatuses]];

await updateExcelTable(projectExcelPath, 'PROMOTE_STATUS', promoteExcelValues);
// await updateExcelTable(projectExcelPath, 'PROMOTE_STATUS', promoteExcelValues);

// Handle the extensions of promoted files
const promotedPaths = promotes.map((promote) => handleExtension(promote));
Expand All @@ -123,7 +123,7 @@ async function main(params) {

const promotedExcelValues = [['Promoted Files Preview completed', toUTCStr(new Date()), sFailedPromotedPreviews]];
// Update Promoted Preview Status
await updateExcelTable(projectExcelPath, 'PROMOTE_STATUS', promotedExcelValues);
// await updateExcelTable(projectExcelPath, 'PROMOTE_STATUS', promotedExcelValues);
responsePayload = 'Graybox Promote Worker action completed.';
} else {
responsePayload = 'Bulk Preview not enabled for Graybox Content Tree';
Expand Down

0 comments on commit 4a02347

Please sign in to comment.