Closed tekumara closed 3 years ago
Looks like is because actions/checkout@v2 fetches with depth=1:
Fetching the repository
/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +14bca51985e1e2426f26692f92c598c026d68a2c:refs/remotes/origin/main
To fix, set fetch-depth like so:
- uses: actions/checkout@v2
with:
# so marceloprado/has-changed-path@v1 can detect changes
fetch-depth: 2
My builds are failing to detect that the file has changed: