Skip to content

Commit 1bcdcfe

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

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

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

+49
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,55 @@ 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 "${{ fromJson(steps.pr_details.outputs.result).head.ref }}"
46+
echo "${{ fromJson(steps.pr_details.outputs.result).head.repo.full_name }}"
47+
echo '========'
48+
echo $W_RUN
49+
echo '========'
50+
echo $PR_DETAILS
51+
env:
52+
W_RUN: ${{ toJSON(github.event) }}
53+
PR_DETAILS: ${{fromJson(steps.pr_details.outputs.result)}}
54+
55+
- name: Checkout Forked Repository
56+
uses: actions/checkout@v4
57+
with:
58+
ref: ${{ fromJson(steps.pr_details.outputs.result).head.ref }}
59+
repository: ${{ fromJson(steps.pr_details.outputs.result).head.repo.full_name }}
60+
fetch-depth: 10
61+
62+
- name: Debug2
63+
run: |
64+
echo "--base ${{ fromJson(steps.pr_details.outputs.result).base.sha }} --head ${{ fromJson(steps.pr_details.outputs.result).head.sha }}"
65+
echo "===="
66+
git status
67+
echo '===='
68+
ls -la packages/react-components/react-text/visual-regression
69+
2170
approve_vrt_diff:
2271
if: github.repository_owner == 'microsoft' && github.event.issue.pull_request && contains(github.event.comment.body,'/approve-visual-regression-diff')
2372
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)