mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
🔧 Fix context object construction in Playground workflow script
This commit is contained in:
parent
527f414378
commit
0456f5bbbd
1 changed files with 13 additions and 2 deletions
15
.github/workflows/pr-playground-demo.yml
vendored
15
.github/workflows/pr-playground-demo.yml
vendored
|
@ -142,10 +142,21 @@ jobs:
|
||||||
process.env.ARTIFACT_NAME = artifact_name;
|
process.env.ARTIFACT_NAME = artifact_name;
|
||||||
|
|
||||||
const updatedContext = {
|
const updatedContext = {
|
||||||
...context,
|
repo: {
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo
|
||||||
|
},
|
||||||
issue: {
|
issue: {
|
||||||
...context.issue,
|
|
||||||
number: parseInt(pr_number, 10)
|
number: parseInt(pr_number, 10)
|
||||||
|
},
|
||||||
|
runId: context.runId,
|
||||||
|
payload: {
|
||||||
|
pull_request: {
|
||||||
|
number: parseInt(pr_number, 10),
|
||||||
|
head: {
|
||||||
|
sha: context.sha
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue