File tree 1 file changed +49
-0
lines changed
1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 18
18
NX_VERBOSE_LOGGING : true
19
19
20
20
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
+
21
70
approve_vrt_diff :
22
71
if : github.repository_owner == 'microsoft' && github.event.issue.pull_request && contains(github.event.comment.body,'/approve-visual-regression-diff')
23
72
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments