Skip to content

Commit 59d65bd

Browse files
[infra] Rollback to env var (#188)
1 parent 8852515 commit 59d65bd

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.github/workflows/issues_order-id-validation.yml

+1
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ jobs:
3333
await script({core, github, context})
3434
env:
3535
ORDER_ID: ${{ inputs.orderId }}
36+
ORDER_API_TOKEN: ${{ secrets.SHOP_AUTH_TOKEN }}

.github/workflows/scripts/issues/orderIdValidation.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ module.exports = async ({ core, context, github }) => {
1212
const issueNumber = context.issue.number;
1313

1414
const orderId = process.env.ORDER_ID;
15-
16-
const orderApiToken = await github.rest.actions.getOrgSecret({
17-
owner,
18-
secret_name: 'SHOP_AUTH_TOKEN',
19-
});
15+
const orderApiToken = process.env.ORDER_API_TOKEN;
2016

2117
const orderApi = 'https://store-wp.mui.com/wp-json/wc/v3/orders/';
2218

0 commit comments

Comments
 (0)