ci: fix changelog check checkout (#9688)

* ci: fix changelog check checkout

* use fetch-depth 0 to get all commits to find a merge-base
This commit is contained in:
Alvin Huang 2021-02-02 14:51:20 -05:00 committed by GitHub
parent e48a96eac1
commit 27e80ce5be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,7 @@ jobs:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0 # by default the checkout action doesn't checkout all branches
- name: Check for changelog entry in diff
run: |
# check if there is a diff in the .changelog directory