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.
This commit is contained in:
Christian Decker 2024-02-07 18:05:19 +01:00
parent 345dc42fad
commit ae9c71c255

View File

@ -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