Skip to content

Commit 80c5e9e

Browse files
authored
Update PyNUTClient.yml
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent 854f345 commit 80c5e9e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/PyNUTClient.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ jobs:
4242
git --version >&2 || true ;
4343
TAG_NAME="$(echo $GITHUB_REF | cut -d / -f 3)" ;
4444
if [ x"$TAG_NAME" = xmaster ]; then
45-
TAG_NAME="$(git describe --tags --match 'v[0-9]*.[0-9]*.[0-9]' --exclude '*-signed' --exclude '*rc*' --exclude '*alpha*' --exclude '*beta*' 2>/dev/null || git describe --tags --exclude '*rc*' --exclude '*alpha*' --exclude '*beta*' --exclude '*Windows*' --exclude '*IPM*' 2>/dev/null | sed -e 's/^v\([0-9]\)/\1/' -e 's,^.*/,,')" \
45+
{ TAG_NAME="$(git describe --tags --match 'v[0-9]*.[0-9]*.[0-9]' --exclude '*-signed' --exclude '*rc*' --exclude '*alpha*' --exclude '*beta*')"
46+
|| TAG_NAME="$(git describe --tags --exclude '*rc*' --exclude '*alpha*' --exclude '*beta*' --exclude '*Windows*' --exclude '*IPM*')" ; } \
4647
&& test -n "${TAG_NAME}" \
4748
|| TAG_NAME="2.8.1-`TZ=UTC date +%s`" ;
4849
fi >&2 ;
49-
TAG_NAME="$(echo "$TAG_NAME" | sed -e 's/^v//' -e 's/-g.*$//' -e 's/-/./g')" ;
50+
TAG_NAME="$(echo "$TAG_NAME" | sed -e 's/^v\([0-9]\)/\1/' -e 's,^.*/,,' -e 's/^v//' -e 's/-g.*$//' -e 's/-/./g')" ;
5051
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_OUTPUT
5152
- name: Install pypa/setuptools
5253
run: >-

0 commit comments

Comments
 (0)