Skip to content

Commit 09dd369

Browse files
committed
Modify fetch-depth to have also the default branch
1 parent b684dfc commit 09dd369

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ jobs:
297297
ref: ${{ steps.branch-name.outputs.head_ref_branch }}
298298
path: ${{ github.event.repository.name }}
299299
repository: ${{ github.event.pull_request.head.repo.full_name }}
300-
fetch-depth: 0
300+
fetch-depth: 2
301301

302302
- name: Checkout repo 🛎
303303
uses: actions/[email protected]
@@ -515,14 +515,6 @@ 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-
526518
- name: Check only affected modules 🎯
527519
if: startsWith(${{ github.event.repository.name }}, "teal.modules.") && github.event_name == 'pull_request'
528520
run: |

0 commit comments

Comments
 (0)