GitHub Actions 에서 checkout 한 repo 에 대하여 git log $DIR
과 같이 서브 폴더에 대한 git log 를 확인하는 경우
fetch-depth 옵션을 0 으로 선언하여 전체 히스토리를 받아오게 해야 한다.
https://github.com/actions/checkout
- uses: actions/checkout@v3
with:
# Number of commits to fetch. 0 indicates all history for all branches and tags.
# Default: 1
fetch-depth: 0