Skip to content

Commit

Permalink
chore: configure paths for __version__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lpm0073 committed Nov 17, 2023
1 parent 133dcdf commit c6c4a2f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/semanticVersionBump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down Expand Up @@ -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 }}

0 comments on commit c6c4a2f

Please sign in to comment.