Skip to content

Commit b684dfc

Browse files
committed
Get the default branch of the repository to compare with.
1 parent 25ce19d commit b684dfc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build-check-install.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,14 @@ jobs:
515515
path: "${{ inputs.additional-caches }}"
516516
key: additional-caches-${{ runner.os }}
517517

518+
- name: Checkout default branch (PR) ⚙️
519+
uses: actions/[email protected]
520+
if: github.event_name == 'pull_request'
521+
with:
522+
path: ${{ github.event.repository.name }}
523+
repository: ${{ github.event.pull_request.head.repo.full_name }}
524+
fetch-depth: 1
525+
518526
- name: Check only affected modules 🎯
519527
if: startsWith(${{ github.event.repository.name }}, "teal.modules.") && github.event_name == 'pull_request'
520528
run: |

0 commit comments

Comments
 (0)