From 7e29279cc2e8dcf51de675bb996d16d5b240ea7d Mon Sep 17 00:00:00 2001 From: Hugo Jean Ponsin Date: Wed, 10 Jun 2026 10:48:12 +0200 Subject: [PATCH] forcing module version to be the name of last tag --- .gitea/workflows/action.yaml | 4 +++- Makefile | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/action.yaml b/.gitea/workflows/action.yaml index 51aed22..1312232 100644 --- a/.gitea/workflows/action.yaml +++ b/.gitea/workflows/action.yaml @@ -10,10 +10,12 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: install run: | sed -i 's/ARCH_FILTER=.*/ARCH_FILTER=linux%/' Makefile - make install + make install LIBVERSION=${CI_COMMIT_TAG} sh maketestenv.sh - name: Run tests run: | diff --git a/Makefile b/Makefile index 22b0a3a..0b94eb1 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ include /ioc/tools/driver.makefile MODULE=ePowerSwitch - +LIBVERSION := $(shell git describe --tags --abbrev=0 2>/dev/null || echo "0.0.1") BUILDCLASSES=Linux EPICS_VERSIONS=7.0.7 ARCH_FILTER=RHEL%