compare to last commit in a PR when using git commands

This commit is contained in:
mirpedrol 2023-11-17 12:44:50 +01:00
parent 4067d88573
commit a1714efe8d
No known key found for this signature in database
GPG key ID: B3E684FA07D3BB5D
3 changed files with 33 additions and 13 deletions

View file

@ -462,6 +462,26 @@ jobs:
</details>
<details>
<summary>Using git commands to detect changes</summary>
```yaml
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2 # To retrieve the preceding commit.
- uses: dorny/paths-filter@v2
id: filter
with:
filters: .github/filters.yaml
token: '' # Use git commands
```
</details>
### Custom processing of changed files
<details>