Skip to content

Commit

Permalink
ci: add auto bump in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bolinocroustibat committed Aug 28, 2024
1 parent 16c9752 commit 22938af
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/deploy_on_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Bump version in pyproject.toml to ${{ github.ref_name }}
run: sed -i 's/^ *version.*=.*"\([^"]*\)".*/version = "${{ github.ref_name }}"/' ./pyproject.toml

- name: Commit and push updated pyproject.toml
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
commit_message: "chore: bump version to ${{ github.ref_name }}"
commit_user_name: Adrien Carpentier
commit_user_email: [email protected]
commit_author: Adrien Carpentier <[email protected]>

- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
Expand Down

0 comments on commit 22938af

Please sign in to comment.