From 370b4d7b88d079ca6c811e523cebbb65c2f6d520 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Wed, 4 Sep 2024 10:07:30 +0200 Subject: [PATCH] fix version check ? --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 199b272c2..d88f519e6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,14 +23,14 @@ jobs: - name: Get tag id: vars run: >- - if [[ "${{ inputs.dev_version }}" ]]; then + if [[ -n "${{ inputs.dev_version }}" ]]; then echo "tag=${inputs.dev_version}.dev$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_OUTPUT else echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT fi - name: Validate version number run: >- - if [[ "${{ inputs.dev_version }}" ]]; then + if [[ -n "${{ inputs.dev_version }}" ]]; then echo "Skipping version validation for dev version via manual trigger" else if [[ "${{ github.event.release.prerelease }}" == "true" ]]; then @@ -76,7 +76,7 @@ jobs: pypi-publish: runs-on: ubuntu-latest - if: ${{ ! inputs.dev_version }} + if: ${{ inputs.dev_version }} needs: build-artifact steps: - name: Retrieve release distributions