Skip to content

Commit f5e9d04

Browse files
committed
change detection
1 parent 929a6ba commit f5e9d04

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/reusable-context.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,15 @@ jobs:
6868
}}
6969
7070
- 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 repository= ${{ github.repository }}
74+
- run: echo event.pull_request.head.sha= ${{ github.event.pull_request.head.sha }}
75+
- run: echo head_ref= ${{ github.head_ref }}
76+
- run: echo base_ref= ${{ github.base_ref }}
77+
- run: echo env.GITHUB_HEAD_REF= ${{ env.GITHUB_HEAD_REF }}
78+
- run: echo $GITHUB_HEAD_REF
79+
- run: echo $GITHUB_BASE_REF
7680

7781
# Adapted from https://github.com/actions/checkout/issues/520#issuecomment-1167205721
7882
- name: Fetch commits to get branch diff
@@ -96,6 +100,7 @@ jobs:
96100
commits: ${{ github.event.pull_request.commits }}
97101
refspec_base: '+${{ github.event.pull_request.base.sha }}:remotes/origin/${{ github.event.pull_request.base.ref }}'
98102
refspec_pr: '+${{ github.event.pull_request.head.sha }}:remotes/origin/${{ github.event.pull_request.head.ref }}'
103+
- run: git -P branch -v
99104

100105
# We only want to run tests on PRs when related files are changed,
101106
# or when someone triggers a manual workflow run.

0 commit comments

Comments
 (0)