diff --git a/.github/workflows/PyNUTClient.yml b/.github/workflows/PyNUTClient.yml index 3c51683f08..be4795406f 100644 --- a/.github/workflows/PyNUTClient.yml +++ b/.github/workflows/PyNUTClient.yml @@ -24,6 +24,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master + - name: Fetch git tags + run: >- + set -x ; + git --version >&2 || true ; + git fetch --tags >&2 - name: Set up Python 3.10 uses: actions/setup-python@v3 with: @@ -39,7 +44,6 @@ jobs: # so we need semicolons between commands! run: >- set -x ; - git --version >&2 || true ; 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*')" \