Skip to content

Commit

Permalink
Match version from start of line
Browse files Browse the repository at this point in the history
  • Loading branch information
siliconlad committed Feb 23, 2024
1 parent 2cc03a0 commit 84c3ff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ runs:
- name: Set GitHub Tag as Package Version
run: |
sed -i -r 's/__version__ = ".*"/__version__ = "${{ github.event.release.tag_name }}"/g' ${{ inputs.PACKAGE_DIRECTORY }}__init__.py
sed -i '0,/version =.*/s//version = "'"${{ github.event.release.tag_name }}"'"/' ./pyproject.toml
sed -i '0,/^version =.*/s//version = "'"${{ github.event.release.tag_name }}"'"/' ./pyproject.toml
shell: bash

- name: Add and Commit Version
Expand Down

0 comments on commit 84c3ff9

Please sign in to comment.