Skip to content

Commit 9581d78

Browse files
authored
ci(vrt-poc): add more debugging and api to obtain origin PR payload (#34039)
1 parent f900ebf commit 9581d78

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/pr-vrt-poc.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,28 @@ jobs:
2525
pull-requests: write
2626
contents: write
2727
actions: read
28+
issues: read
2829
steps:
30+
- name: Get Pull Request Details
31+
id: pr_details
32+
uses: actions/github-script@v7
33+
with:
34+
script: |
35+
const response = await github.rest.pulls.get({
36+
owner: context.repo.owner,
37+
repo: context.repo.repo,
38+
pull_number: context.issue.number,
39+
});
40+
return response.data;
41+
2942
- name: Debug
3043
run: |
3144
echo $W_RUN
45+
echo '===='
46+
echo $PR_DETAILS
3247
env:
33-
W_RUN: ${{ toJSON(github.event.pull_request) }}
48+
W_RUN: ${{ toJSON(github.event) }}
49+
PR_DETAILS: ${{toJSON(steps.pr_details.outputs)}}
3450

3551
- name: Checkout Forked Repository
3652
uses: actions/checkout@v4

0 commit comments

Comments
 (0)