From 69d5b8aeae939bbca18b70a562710f8aa33462ec Mon Sep 17 00:00:00 2001 From: samuel Date: Sat, 14 Feb 2026 21:45:25 +0100 Subject: [PATCH] ci: fetch tags --- .gitea/workflows/ci.yaml | 6 ++++-- Makefile | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 5cc45cd..8cbe3d6 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -9,8 +9,10 @@ jobs: build: runs-on: linux steps: - - name: Checkout - uses: actions/checkout@v4 + - name: Git checkout + uses: actions/checkout@v6 + with: + fetch-tags: true - name: Build tarball run: make tarball - name: Build rpm package diff --git a/Makefile b/Makefile index 3718577..80e7fdc 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ NAME = $(shell basename $(PWD)) VERSION = $(shell git describe | sed 's/-/./g') -RELEASE = 0 +RELEASE = $(shell git rev-parse --short HEAD) BRANCH = $(shell git branch --show-current) BUILD_ARCH = noarch RPM_BUILD_PATH = $(RPM_RPMDIR)/$(BUILD_ARCH)/$(NAME)-$(VERSION)-$(RELEASE).$(BUILD_ARCH).rpm