From: Jaroslav Kysela Date: Wed, 19 Feb 2020 10:01:40 +0000 (+0100) Subject: github workflow: try to fix the empty version X-Git-Tag: v1.2.2~2 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=3ca6cd71aee0f70229ce60d2cdb8c39f509afbd8;p=alsa-utils.git github workflow: try to fix the empty version Signed-off-by: Jaroslav Kysela --- 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