Skip to content

Commit 81f1951

Browse files
committed
change detection
1 parent 929a6ba commit 81f1951

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/reusable-context.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,14 @@ 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
78+
- run: echo $GITHUB_BASE_REF
7679

7780
# Adapted from https://github.com/actions/checkout/issues/520#issuecomment-1167205721
7881
- name: Fetch commits to get branch diff
@@ -96,6 +99,7 @@ jobs:
9699
commits: ${{ github.event.pull_request.commits }}
97100
refspec_base: '+${{ github.event.pull_request.base.sha }}:remotes/origin/${{ github.event.pull_request.base.ref }}'
98101
refspec_pr: '+${{ github.event.pull_request.head.sha }}:remotes/origin/${{ github.event.pull_request.head.ref }}'
102+
- run: git -P branch -v
99103

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

0 commit comments

Comments
 (0)