From 1078d22b92aa4e56bf74a70ebb84304df6fd2dfa Mon Sep 17 00:00:00 2001 From: Frank Greguska <89428916+frankinspace@users.noreply.github.com> Date: Thu, 30 May 2024 13:36:04 -0700 Subject: [PATCH] /version 0.1.1 fix incorrect version bump --- .github/workflows/cicd-pipeline.yml | 8 +++++++- pyproject.toml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd-pipeline.yml b/.github/workflows/cicd-pipeline.yml index be6b71c..81cf2cf 100644 --- a/.github/workflows/cicd-pipeline.yml +++ b/.github/workflows/cicd-pipeline.yml @@ -121,8 +121,14 @@ jobs: startsWith(github.ref, 'refs/heads/main') && steps.manual.conclusion == 'skipped' id: release + env: + CURRENT_VERSION: ${{ steps.get-version.outputs.current_version }} + # Remove rc* from end of version string + # The ${string%%substring} syntax below deletes the longest match of $substring from back of $string. run: | - poetry version major + poetry version ${CURRENT_VERSION%%rc*} + echo "software_version=$(poetry version | awk '{print $2}')" >> $GITHUB_ENV + echo "venue=ops" >> $GITHUB_ENV echo "TARGET_ENV_UPPERCASE=OPS" >> $GITHUB_ENV - name: Get install version # Get the version of the software being installed and save it as an ENV var diff --git a/pyproject.toml b/pyproject.toml index 0ba9ddc..d901d2b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "bignbit" -version = "1.0.0" +version = "0.1.1" description = "Browse image generation and transfer" authors = ["PO.DAAC "] license = "Apache 2.0"