From 6a14ed04601c30ba7d6da04b18f1ea159bf10269 Mon Sep 17 00:00:00 2001 From: Tyler Chafin Date: Wed, 7 Feb 2024 14:10:57 +0000 Subject: [PATCH] Update conda-docker-update.yml --- .github/workflows/conda-docker-update.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/conda-docker-update.yml b/.github/workflows/conda-docker-update.yml index a732ca0..c924b85 100644 --- a/.github/workflows/conda-docker-update.yml +++ b/.github/workflows/conda-docker-update.yml @@ -10,23 +10,16 @@ jobs: steps: - name: Check Out Code uses: actions/checkout@v2 - - - name: Extract Version from Tag - shell: bash - run: | - VERSION=${GITHUB_REF#refs/tags/v} # Strip 'refs/tags/v' to get the version number - echo "VERSION=${VERSION}" >> $GITHUB_ENV - echo "Stripped version: ${VERSION}" - name: Set Package Version shell: bash run: | - echo "__version__ = '${{ env.VERSION }}'" > ./version.py + echo "__version__ = '${{ github.event.release.tag_name }}'" > ./version.py - name: Update Version in Conda Recipe shell: bash run: | - sed -i "s/\$VERSION/${{ env.VERSION }}/g" conda-recipe/meta.yaml + sed -i "s/\$VERSION/${{ github.event.release.tag_name }}/g" conda-recipe/meta.yaml - name: Set up Conda uses: conda-incubator/setup-miniconda@v2 @@ -68,5 +61,5 @@ jobs: context: . file: ./docker/Dockerfile push: true - tags: tkchafin/autostreamtree:latest,tkchafin/autostreamtree:${{ env.VERSION }} + tags: tkchafin/autostreamtree:latest,tkchafin/autostreamtree:${{ github.event.release.tag_name }}