fix(ci): correctly update version number in pyproject.toml
This commit is contained in:
parent
c3b5470f6f
commit
bba8af2b06
3
.github/workflows/publish.yml
vendored
3
.github/workflows/publish.yml
vendored
@ -34,7 +34,8 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
OLD_VERSION=$(grep ^version pyproject.toml | cut -d '"' -f 2)
|
OLD_VERSION=$(grep ^version pyproject.toml | cut -d '"' -f 2)
|
||||||
OLD_VERSION="\"$OLD_VERSION\""
|
OLD_VERSION="\"$OLD_VERSION\""
|
||||||
NEW_VERSION="\"$GITHUB_REF_NAME\""
|
NEW_VERSION=$(echo "${{ needs.create_release.outputs.release_name }}" | cut -d '"' -f 2 | cut -d 'v' -f 2)
|
||||||
|
NEW_VERSION="\"$NEW_VERSION\""
|
||||||
sed -i "s+version = $OLD_VERSION+version = $NEW_VERSION+g" pyproject.toml
|
sed -i "s+version = $OLD_VERSION+version = $NEW_VERSION+g" pyproject.toml
|
||||||
- name: Setup Poetry
|
- name: Setup Poetry
|
||||||
uses: abatilo/actions-poetry@v3
|
uses: abatilo/actions-poetry@v3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user