diff --git a/.github/workflows/semanticVersionBump.yml b/.github/workflows/semanticVersionBump.yml index 29b0dd55..95adf248 100644 --- a/.github/workflows/semanticVersionBump.yml +++ b/.github/workflows/semanticVersionBump.yml @@ -19,6 +19,9 @@ on: jobs: bump-version-next: runs-on: ubuntu-latest + env: + VERSION_FILE: __version__.py + VERSION_FILE_PATH: ${{ github.workspace }}/api/terraform/python/layer_genai/openai_utils/ steps: - uses: actions/checkout@v4 @@ -43,6 +46,7 @@ jobs: # the current version persisted to __version__.py id: current_version run: | + cd ${{ env.VERSION_FILE_PATH }} echo "CURRENT_VERSION=$(python -c 'from __version__ import __version__; print(__version__)')" >> $GITHUB_ENV env: GITHUB_TOKEN: ${{ secrets.PAT }} @@ -102,7 +106,7 @@ jobs: git commit -m "chore: [gh] Update __version__.py to ${{ env.NEXT_VERSION }} [skip ci]" git push https://${{ secrets.PAT }}@github.com/${{ github.repository }}.git HEAD:${{ github.ref }} env: - VERSION_FILE: ${{ github.workspace }}/api/terraform/python/layer_genai/openai_utils/__version__.py + VERSION_FILE: ${{ env.VERSION_FILE_PATH }}${{ env.VERSION_FILE }} GITHUB_TOKEN: ${{ secrets.PAT }} NEXT_VERSION: ${{ env.NEXT_VERSION }} VERSION_CHANGED: ${{ env.VERSION_CHANGED }}