From 3ca6cd71aee0f70229ce60d2cdb8c39f509afbd8 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 19 Feb 2020 11:01:40 +0100 Subject: [PATCH] github workflow: try to fix the empty version Signed-off-by: Jaroslav Kysela --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3c29349..a6ba535 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,6 +52,7 @@ jobs: cd alsa-utils mv configure.ac configure.ac.old version=$(git describe | sed -e 's/v//') + if test -z "$version"; then version=$(git describe --tags | sed -e 's/v//'); fi echo "Version: ${version}" sed -r "s/AC_INIT\(alsa-utils,.*\)/AC_INIT(alsa-utils, ${version})/" < configure.ac.old > configure.ac.tmp sed -e 's;po/Makefile.in;;' < configure.ac.tmp > configure.ac