From ab80933e731c4de70dfa6d9b9a3a29ee944e9b1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Miri=C4=87?= <1009277+imiric@users.noreply.github.com> Date: Sun, 21 Apr 2024 23:35:04 +0200 Subject: [PATCH] ci: checkout repo with full history in publish job This is needed for `git describe` to extract the proper version, including distance from latest tag. --- .github/workflows/ci-earthly.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci-earthly.yml b/.github/workflows/ci-earthly.yml index bef0354..c701f6a 100644 --- a/.github/workflows/ci-earthly.yml +++ b/.github/workflows/ci-earthly.yml @@ -83,6 +83,8 @@ jobs: version: v0.8.8 - name: Checkout code uses: actions/checkout@v4 + with: + fetch-depth: 0 # Needed for Earthly tagging to work - name: Put back the git branch into git run: |