Skip to content

Bump

Bump #31

Workflow file for this run

name: Bump
on:
workflow_dispatch:
jobs:
ci:
uses: ./.github/workflows/ci.yml
bump:
runs-on: ubuntu-latest
needs:
- ci
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: "${{ secrets.DEPLOY_SSH_KEY }}"
- run: pip3 install Commitizen==3.12.0 setuptools-scm>=8.0
- run: git config --local user.email "[email protected]"
- run: git config --local user.name "github-actions"
- name: Get new version
run: echo "NEW_VERSION=$(cz bump --dry-run | grep -Po 'v\K([0-9]+(\.[0-9]+)+)')" >> $GITHUB_ENV
- name: Update Cargo.toml
run: sed -i 's/^version =.\+$/version = "${{ env.NEW_VERSION }}"/' Cargo.toml
- run: cz bump --changelog
- run: git push
- run: git push --tags