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:
parent
6cb9c5250e
commit
a7f74feabd
|
@ -35,7 +35,7 @@ jobs:
|
||||||
- uses: actions/checkout@v3.0.2
|
- uses: actions/checkout@v3.0.2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
fetch-depth: 0
|
fetch-depth: 2
|
||||||
|
|
||||||
- name: Rust files
|
- name: Rust files
|
||||||
id: changed-files-rust
|
id: changed-files-rust
|
||||||
|
|
Loading…
Reference in New Issue