The action to detect changes needs a repository to be checked out on push event (#22324)

This commit is contained in:
Massimiliano Culpo 2021-03-16 18:27:41 +01:00 committed by GitHub
parent b304b4bdb0
commit 2aab415f3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,6 +77,10 @@ jobs:
packages: ${{ steps.filter.outputs.packages }}
with_coverage: ${{ steps.coverage.outputs.with_coverage }}
steps:
- uses: actions/checkout@v2
if: ${{ github.event_name == 'push' }}
with:
fetch-depth: 0
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v2
id: filter