@@ -68,11 +68,16 @@ jobs:
68
68
}}
69
69
70
70
- run : git remote -vvv
71
- - run : echo ${{ github.ref }}
72
- - run : echo ${{ github.repository }}
73
- - run : echo ${{ github.repository }}
74
- - run : echo ${{ github.event.pull_request.head.sha }}
75
- - run : echo ${{ env.GITHUB_HEAD_REF }}
71
+ - run : git -P branch -v
72
+ - run : echo ref= ${{ github.ref }}
73
+ - run : echo sha= ${{ github.sha }}
74
+ - run : echo repository= ${{ github.repository }}
75
+ - run : echo event.pull_request.head.sha= ${{ github.event.pull_request.head.sha }}
76
+ - run : echo head_ref= ${{ github.head_ref }}
77
+ - run : echo base_ref= ${{ github.base_ref }}
78
+ - run : echo env.GITHUB_HEAD_REF= ${{ env.GITHUB_HEAD_REF }}
79
+ - run : echo $GITHUB_HEAD_REF
80
+ - run : echo $GITHUB_BASE_REF
76
81
77
82
# Adapted from https://github.com/actions/checkout/issues/520#issuecomment-1167205721
78
83
- name : Fetch commits to get branch diff
96
101
commits : ${{ github.event.pull_request.commits }}
97
102
refspec_base : ' +${{ github.event.pull_request.base.sha }}:remotes/origin/${{ github.event.pull_request.base.ref }}'
98
103
refspec_pr : ' +${{ github.event.pull_request.head.sha }}:remotes/origin/${{ github.event.pull_request.head.ref }}'
104
+ - run : git -P branch -v
99
105
100
106
# We only want to run tests on PRs when related files are changed,
101
107
# or when someone triggers a manual workflow run.
0 commit comments