Skip to content

Commit

Permalink
Fix auto updating code version
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaveMyYard committed Sep 5, 2023
1 parent 88a8c3d commit 6c64218
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/update-code-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
- name: Extract version from tag
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV

- name: Select main branch
run: git checkout main

- name: Update version in pyproject.toml
run: |
sed -i "s/version = \".*\"/version = \"$VERSION\"/" pyproject.toml
Expand Down

0 comments on commit 6c64218

Please sign in to comment.