diff --git a/.github/workflows/PyNUTClient.yml b/.github/workflows/PyNUTClient.yml index 22cd907b7c..499ff04ae0 100644 --- a/.github/workflows/PyNUTClient.yml +++ b/.github/workflows/PyNUTClient.yml @@ -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,^.*/,,')" \ @@ -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