From c4680cca3ecfaf9a41798d2d85412dd71c674386 Mon Sep 17 00:00:00 2001 From: Andrea Lamparelli Date: Wed, 27 Mar 2024 15:43:33 +0100 Subject: [PATCH] Fix publish workflow --- .github/workflows/publish.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 8e5fa8a..562df8a 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -20,14 +20,6 @@ jobs: steps: - name: Check out the repository uses: actions/checkout@v4 - - name: Check version coherence - run: | - PROJECT_VERSION=$(poetry version | cut -d' ' -f2) - GIT_TAG=$(git describe --tags --match="v*") - if [[ "${GIT_TAG:1}" =~ $PROJECT_VERSION ]]; then - echo "::error title='$GIT_TAG tag does not match project version'::" - exit 1 - fi - name: Set up Python uses: actions/setup-python@v5 with: @@ -44,6 +36,14 @@ jobs: run: | pip install --constraint=./dev-constraints.txt nox nox-poetry nox --version + - name: Check version coherence + run: | + PROJECT_VERSION=$(poetry version | cut -d' ' -f2) + GIT_TAG=$(git describe --tags --match="v*") + if [[ "${GIT_TAG:1}" =~ $PROJECT_VERSION ]]; then + echo "::error title='$GIT_TAG tag does not match project version'::" + exit 1 + fi - name: Generate horreum client # HORREUM_BRANCH must be properly set to the Horreum branch you want to fetch the openapi run: make generate