You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Cargo Bump
v2.0.0
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@v2
- name: Bump version
uses: tj-actions/cargo-bump@v1
# Commit and Push changes to the Cargo.toml
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 |
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) |
- Free software: MIT license
If you feel generous and want to show some extra appreciation:
This package was created with Cookiecutter using cookiecutter-action
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.