Skip to content

Commit

Permalink
Update PyNUTClient.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov authored Nov 18, 2023
1 parent f06c0d4 commit 3dd41b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/PyNUTClient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ jobs:
- name: Extract python interpreter path name
id: pythoncmd
run: >-
set -x ;
echo "PYTHON=$(command -v python)" >> $GITHUB_OUTPUT
- name: Extract tag name
id: tag
# Note: this is all a single shell line in the end,
# so we need semicolons between commands!
run: >-
set -x ;
TAG_NAME="$(echo $GITHUB_REF | cut -d / -f 3)" ;
if [ x"$TAG_NAME" = xmaster ]; then
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,^.*/,,')" \
Expand All @@ -48,7 +50,7 @@ jobs:
- name: Install pypa/setuptools
run: >-
${{ steps.pythoncmd.outputs.PYTHON }} -m
${{ steps.pythoncmd.outputs.PYTHON }} -m pip install wheel build
pip install wheel build
- name: Update version in setup.py
run: >-
if [ ! -s scripts/python/module/setup.py ] ; then
Expand Down

0 comments on commit 3dd41b1

Please sign in to comment.