Skip to content

Commit

Permalink
[infra] Fix Issue cleanup action
Browse files Browse the repository at this point in the history
A follow-up on #13957 (comment)
  • Loading branch information
oliviertassinari committed Aug 28, 2024
1 parent 97afd65 commit 113a612
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/githubActions/orderIdValidation.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@ module.exports = async ({ core, context, github }) => {
} else {
const order = await fetch(`${orderApi}${orderId}`, {
headers: {
Authorization: orderApiToken,
Authorization: `Basic ${orderApiToken}`,
'User-Agent': 'MUI-Tools-Private/X-Orders-Inspector v1',
},
});

if (!order.ok) {
core.info(`Request to ${orderApi} failed. Response status code: ${order.status}.`);
}

const orderDetails = await order.json();

core.debug(`>>> Order Items: ${orderDetails.line_items?.join(',')}`);
Expand Down

0 comments on commit 113a612

Please sign in to comment.