Skip to content

Commit

Permalink
feat(ci): update pyproject.toml version
Browse files Browse the repository at this point in the history
  • Loading branch information
pehlicd committed Apr 2, 2024
1 parent 870b017 commit db3bc55
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Update pyproject.toml
uses: ciiiii/[email protected]
with:
file: "pyproject.toml"
key: "tool.poetry.version"
value: "${{ steps.release.outputs.new_version }}"
env:
NEW_VERSION: ${{ github.event.inputs.new_version }}
run: |
sed -i "s/^version = .*/version = \"$NEW_VERSION\"/" pyproject.toml
git add pyproject.toml
git commit -m "chore: bump version to $NEW_VERSION"
git push

0 comments on commit db3bc55

Please sign in to comment.