commit
1efe0d694c11068c5df483695388bae45319baf1
Author:
Dan Ott <danott@users.noreply.github.com>
Date:
Wed Jan 17 20:45:57 2024 -0500
Reply:
GitHub
Home:
allow-empty
Next:
9011e995f237f0e7e4a6fe0c3ac09b2bcfc07e27
Prev:
1b99f2f4dda463d0a84db5e8d7b8455ba5add07e

Today I learned GitHub Actions fetch-depth

My deploy worked! This static site was available at https://allow-empty.danott.website. But there was only one commit represented.

My hunch was that actions/checkout@v4 checks out the minimal amount of data.

Yep! It’s right there in the README. Towards the top.

Only a single commit is fetched by default, for the ref/SHA that triggered the workflow. Set fetch-depth: 0 to fetch all history for all branches and tags.