File tree 1 file changed +46
-0
lines changed
1 file changed +46
-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 $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
+
21
67
approve_vrt_diff :
22
68
if : github.repository_owner == 'microsoft' && github.event.issue.pull_request && contains(github.event.comment.body,'/approve-visual-regression-diff')
23
69
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments