Skip to content

GitHub action to automate bump version in CHANGELOG.md (Keep a Changelog format) and optionally bump other files’ version using BumpVer, then commit and push changes.

License

Notifications You must be signed in to change notification settings

AlirezaTheH/auto-bump-versions

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Auto Bump Versions

GitHub action to automate bump version in CHANGELOG.md (Keep a Changelog format) and optionally bump other files' version using BumpVer, then commit and push changes.

Usage

name: Publish
on:
  push:
    branches:
      - main
  workflow_dispatch:

jobs:
  bump-versions:
    runs-on: ubuntu-latest
    steps:
      - uses: alirezatheh/auto-bump-versions@v1
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          new-version: 1.2.3
          use-bumpver: true

The action assume:

  • Python and pip are installed (e.g. by actions/setup-python@v3).

Inputs

  • github-token: GitHub token (required).
  • new-version: The version to be bumped. If missing guess the new version using section names in unreleased changes of CHANGELOG.md (Keep a Changelog format) (optional).
  • use-bumpver: If use BumpVer to bump local version in files other than CHANGELOG.md. If this is true your project root must contain bumpver.toml file, Defaults to false (optional).

Outputs

  • new-version: New version to be released. If new-version input is missing, this is the guessed version.

Acknowledgements

This action is inspired by pypi-auto-publish

About

GitHub action to automate bump version in CHANGELOG.md (Keep a Changelog format) and optionally bump other files’ version using BumpVer, then commit and push changes.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages