From 4270152a0676d0d93bbbad5f0ab92069a2e736ef Mon Sep 17 00:00:00 2001 From: Sebastian Blum Date: Mon, 12 Aug 2024 21:02:54 +0200 Subject: [PATCH] fix: add env version to job --- .github/workflows/CD_deployment.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CD_deployment.yml b/.github/workflows/CD_deployment.yml index 96dfbe6..3c8f457 100644 --- a/.github/workflows/CD_deployment.yml +++ b/.github/workflows/CD_deployment.yml @@ -88,6 +88,8 @@ jobs: needs: - deploy - get-tag + env: + TAG_VERSION: ${{ needs.get-tag.outputs.PACKAGE_VERSION }} steps: - name: Checkout code with full history @@ -95,11 +97,6 @@ jobs: with: fetch-depth: 0 # - - # name: Set up Python - # uses: actions/setup-python@v4 - # with: - # python-version: '3.x' - # - # name: Extract tag version # id: extract_version # run: | @@ -117,6 +114,7 @@ jobs: - name: Update Version in pyproject.toml run: | + echo "Extracted tag version: $TAG_VERSION" sed -i "s/^DOCKER_IMAGE: \"octivbooker:.*\"/DOCKER_IMAGE: \"octivbooker:v${{ needs.get-tag.outputs.PACKAGE_VERSION }}\"/" .github/workflows/run-on-schedule.yml - name: Verify Update