From ae9c71c2554fa81bfda2779430689e3be5e16326 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Wed, 7 Feb 2024 18:05:19 +0100 Subject: [PATCH] ci: Fetch tags while building so the binaries know We weren't compiling with tags, causing the version command to just return the git commit hash, rather than a valid version string. --- .github/workflows/ci.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 76bfa975e..fc9c60bc4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -32,6 +32,7 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 + fetch-tags: true - name: Rebase # We can't rebase if we're on master already. @@ -94,6 +95,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + fetch-depth: 0 + fetch-tags: true - name: Set up Python 3.8 uses: actions/setup-python@v4