Make versioning always show diff from last tag to current commit
MODIFY
.github/workflows/scripts/set_version.sh
.github/workflows/scripts/set_version.sh
#!/bin/bash
set -e
-if ([ "${GITHUB_REF##*/}" = "master" ]) then
- export RIPES_VERSION=continuous
-else
- # get tag name and convert '/' to '-'
- export RIPES_VERSION=$(echo ${GITHUB_REF#refs/*/} | sed -e 's/\//-/g')
-fi
+# Get the last tag which is not the top-of-head continuous tag
+export RIPES_VERSION=$(git describe --tags --exclude "continuous")

MODIFY
src/version/version.cmake
src/version/version.cmake
set(ENV{GIT_DIR} ${RIPES_SRC_DIR}/.git)
-execute_process(COMMAND git describe --tags
+execute_process(COMMAND git describe --tags --exclude "continuous"
OUTPUT_VARIABLE GIT_REV
ERROR_QUIET)

Make versioning always show diff from last tag to current commit