diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bd67bf8..5bd034a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,7 +33,11 @@ jobs: - name: Set version without 'v' run: | - VERSION=${GITHUB_REF_NAME#v} + if [[ "${GITHUB_REF}" == refs/tags/* ]]; then + VERSION=${GITHUB_REF_NAME#v} + else + VERSION="0.0.0" # Dummy version for testing + fi echo "VERSION=${VERSION}" >> $GITHUB_ENV echo "GIT_DESCRIBE_TAG=${VERSION}" >> $GITHUB_ENV diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 3aa76a2..a61cf64 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,6 +1,6 @@ package: name: "grdwindinversion" - version: {{ environ.get('GIT_DESCRIBE_TAG', 0)}} + version: "{{ environ.get('GIT_DESCRIBE_TAG', '0') | string }}" source: path: ../.