ci(lint): fetch with depth for `tj-actions/changed-files` on push (#5097)

Previous behavior:
The `tj-actions/changed-files` crashed when making pushes to main, as no
fetch depth was defined on the previous checkout action. Which is now r
required after b216561b5b

Expected behavior:
Do not fail with this new requirement

Solution:
Change the chekout action `fetch-depth` to 2, allowing to compare with
the previous commit
This commit is contained in:
Gustavo Valverde 2022-09-06 15:58:03 -04:00 committed by GitHub
parent 6cb9c5250e
commit a7f74feabd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ jobs:
- uses: actions/checkout@v3.0.2
with:
persist-credentials: false
fetch-depth: 0
fetch-depth: 2
- name: Rust files
id: changed-files-rust