Skip to content

Commit 77802a8

Browse files
committed
undo: add debug job
1 parent d7ead32 commit 77802a8

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

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

+46
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,52 @@ env:
1818
NX_VERBOSE_LOGGING: true
1919

2020
jobs:
21+
debug:
22+
if: github.repository_owner == 'microsoft' && github.event_name == 'pull_request'
23+
runs-on: ubuntu-latest
24+
permissions:
25+
contents: 'read'
26+
actions: 'read'
27+
steps:
28+
- name: Get Pull Request Details
29+
id: pr_details
30+
uses: actions/github-script@v7
31+
with:
32+
script: |
33+
const response = await github.rest.pulls.get({
34+
owner: context.repo.owner,
35+
repo: context.repo.repo,
36+
pull_number: context.issue.number,
37+
});
38+
39+
console.log({issue:context.issue})
40+
41+
return response.data;
42+
43+
- name: Debug
44+
run: |
45+
echo $W_RUN
46+
echo '===='
47+
echo ${{fromJson(steps.pr_details.outputs.result)}}
48+
env:
49+
W_RUN: ${{ toJSON(github.event) }}
50+
PR_DETAILS: ${{steps.pr_details.outputs.result}}
51+
52+
- name: Debug2
53+
run: |
54+
echo "--base ${{ fromJson(steps.pr_details.outputs.result).base.sha }} --head ${{ fromJson(steps.pr_details.outputs.result).head.sha }}"
55+
echo "===="
56+
git status
57+
echo '===='
58+
ls -la packages/react-components/react-text/visual-regression
59+
60+
- name: Checkout Forked Repository
61+
uses: actions/checkout@v4
62+
with:
63+
ref: ${{ fromJson(steps.pr_details.outputs.result).head.ref }}
64+
repository: ${{ fromJson(steps.pr_details.outputs.result).head.repo.full_name }}
65+
fetch-depth: 10
66+
2167
approve_vrt_diff:
2268
if: github.repository_owner == 'microsoft' && github.event.issue.pull_request && contains(github.event.comment.body,'/approve-visual-regression-diff')
2369
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)