diff options
author | Jaroslav Kysela <perex@perex.cz> | 2020-02-19 11:01:40 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2020-02-19 11:01:40 +0100 |
commit | 3ca6cd71aee0f70229ce60d2cdb8c39f509afbd8 (patch) | |
tree | 4d167416472e38d1a08906012185ece1dc67b9cb /.github | |
parent | bcacde51097f72cda17a580be2ce1e302e1c5828 (diff) | |
download | alsa-utils-3ca6cd71aee0f70229ce60d2cdb8c39f509afbd8.tar.gz |
github workflow: try to fix the empty version
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 1 |
1 files changed, 1 insertions, 0 deletions
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 |