github actions complete clone
By default, github actions only do:
git fetch ‐‐depth=1
This causes a small problem for my blog to create the index page.
In my blog, I use git commit timestamps to track the create time
of each post.
Adding the following lines in workflows, it should be fine.
‐ uses: actions/checkout@v3
with:
fetch‐depth: 0 # 完整 clone