Skip to content

Commit

Permalink
FIX: versioning name
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentAuriau committed Jun 4, 2024
1 parent 730e207 commit 69152bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/actions/publish/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ runs:
- name: Set GitHub Tag as Package Version
run: |
vname="${github.event.release.tag_name:1}"
sed -i -r 's/__version__ *= *".*"/__version__ = "${{ $vname }}"/g' ${{ inputs.PACKAGE_DIRECTORY }}__init__.py
sed -i '0,/version =.*/s//version = "'"${{ $vname }}"'"/' ./pyproject.toml
echo $vname
sed -i -r 's/__version__ *= *".*"/__version__ = "$vname"/g' ${{ inputs.PACKAGE_DIRECTORY }}__init__.py
sed -i '0,/version =.*/s//version = "'"$vname"'"/' ./pyproject.toml
shell: bash

- name: Add and Commit Version
Expand Down

0 comments on commit 69152bc

Please sign in to comment.