Skip to content

Commit da921c8

Browse files
committed
change detection
1 parent 929a6ba commit da921c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/reusable-context.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,13 @@ jobs:
6868
}}
6969
7070
- run: git remote -vvv
71+
- run: git -P branch -v
7172
- run: echo ${{ github.ref }}
7273
- run: echo ${{ github.repository }}
7374
- run: echo ${{ github.repository }}
7475
- run: echo ${{ github.event.pull_request.head.sha }}
7576
- run: echo ${{ env.GITHUB_HEAD_REF }}
77+
- run: echo $GITHUB_HEAD_REF
7678

7779
# Adapted from https://github.com/actions/checkout/issues/520#issuecomment-1167205721
7880
- name: Fetch commits to get branch diff
@@ -96,6 +98,7 @@ jobs:
9698
commits: ${{ github.event.pull_request.commits }}
9799
refspec_base: '+${{ github.event.pull_request.base.sha }}:remotes/origin/${{ github.event.pull_request.base.ref }}'
98100
refspec_pr: '+${{ github.event.pull_request.head.sha }}:remotes/origin/${{ github.event.pull_request.head.ref }}'
101+
- run: git -P branch -v
99102

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

0 commit comments

Comments
 (0)