Files
gitbump/README.md
Ondrej Belusky 4f46101d4c
Some checks failed
Gitbump CI / test (push) Failing after 51s
Gitbump CI / build (push) Successful in 10s
Gitbump CI / notify-failure (push) Has been skipped
move to gitea actions
2026-02-12 12:52:34 +01:00

41 lines
1.2 KiB
Markdown

# gitbump
Automatically bump version and tag based on commit messages.
## Usage as Gitea/GitHub Action
Add this to your workflow:
```yaml
jobs:
bump:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: '1.23'
- uses: https://gitea.com/your-user/gitbump@master
```
### Inputs
| Input | Description | Default |
|-------|-------------|---------|
| `dry-run` | Show what would be done without making changes | `false` |
| `bump` | Force specific bump type (`major`, `minor`, or `patch`) | |
| `prefix` | Version prefix | `v` |
| `no-push` | Create tag but don't push to remote | `false` |
| `major-patterns` | Comma-separated list for major version bumps | `bump major,breaking change` |
| `minor-patterns` | Comma-separated list for minor version bumps | `bump minor,feat` |
| `patch-patterns` | Comma-separated list for patch version bumps | `bump patch,fix` |
| `chore-patterns` | Comma-separated list for commits that should be ignored | `chore,bump:skip` |
## TODO
- consider using https://github.com/go-git/go-git
- could read changelog or something to create an annotated tag