Skip to content

Cargo Bump

Actions
Bump Cargo.toml version
v3.0.2
Latest
Star (8)

CI Update release version. Codacy Badge Public workflows that use this action.

All Contributors

cargo-bump

Github action that bumps the current version in your Cargo.toml.

on:
  push:
    tags:
      - v*

jobs:
  bump-version:
    runs-on: ubuntu-latest
    name: Test cargo-bump
    steps:
      - uses: actions/checkout@v4
      - name: Bump version
        uses: tj-actions/cargo-bump@v3
      # Commit and Push changes to the Cargo.toml

See working example here

Inputs

INPUT TYPE REQUIRED DEFAULT DESCRIPTION
release_type string false The release type (major, minor, patch). (Default: the diff between the current tag and the previous tag)
working-directory string false "." Working directory

Outputs

OUTPUT TYPE DESCRIPTION
new_version string The current project version
old_version string The previous project version
release_type string The difference between two versions
by the release type (major, minor, patch)

If you feel generous and want to show some extra appreciation:

Buy me a coffee

Credits

This package was created with Cookiecutter using cookiecutter-action

Report Bugs

Report bugs at https://github.com/tj-actions/cargo-bump/issues.

If you are reporting a bug, please include:

  • Your operating system name and version.
  • Any details about your workflow that might be helpful in troubleshooting.
  • Detailed steps to reproduce the bug.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Raphael Boidol
Raphael Boidol

📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Cargo Bump is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Bump Cargo.toml version
v3.0.2
Latest

Cargo Bump is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.