Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. GitHub Actions
  3. Automatically Bump and Tag on Merge

Automatically Bump and Tag on Merge

MITShell1.75.0

A GitHub Action to automatically bump and tag repositories with SemVer versions on merge.

GitHubGitHub
873 stars394 forks0 contributors

What is Automatically Bump and Tag on Merge?

github-tag-action is a GitHub Action that automatically increments and applies Semantic Versioning (SemVer) tags to a repository when code is merged. It parses commit messages for version bump indicators and pushes the appropriate tag, eliminating manual version management in CI/CD pipelines.

Target Audience

Developers and DevOps teams using GitHub Actions who want to automate version tagging and enforce SemVer conventions in their release workflows.

Value Proposition

It reduces human error in versioning, integrates seamlessly into GitHub workflows, and offers extensive customization for different branching strategies and tagging preferences.

Overview

A Github Action to tag a repo on merge.

Use Cases

Best For

  • Automating SemVer tagging in GitHub Actions workflows
  • Enforcing version bump conventions through commit messages
  • Generating prerelease tags for feature branches
  • Integrating version tagging with pull request merges
  • Simulating version bumps with dry-run outputs
  • Maintaining consistent versioning across release branches

Not Ideal For

  • Projects hosted on non-GitHub platforms (e.g., GitLab, Bitbucket) that require automated version tagging
  • Teams using versioning schemes other than Semantic Versioning, such as calendar versioning or custom incremental numbers
  • Workflows requiring annotated tags for GPG signing or detailed release metadata
  • Repositories with highly complex version bump logic that cannot be expressed through commit message tags or the provided environment variables

Pros & Cons

Pros

Commit-Driven SemVer Enforcement

Automatically bumps versions based on commit message tags like #major or #patch, enforcing SemVer conventions without manual intervention, as detailed in the bumping section.

Flexible Branch Strategy Support

Configurable for release and prerelease branches via RELEASE_BRANCHES and PRERELEASE options, allowing stable tags on main and development versions on feature branches.

Highly Customizable Tagging

Offers numerous environment variables for tag prefixes, prerelease suffixes, and bump tokens, enabling fine-grained control over tag generation and history scanning.

Safe Testing with Dry Runs

Includes a DRY_RUN mode to simulate version bumps and expose new_tag outputs, useful for integrating with other workflow steps without pushing tags.

Cons

Uncertain Maintenance Future

The project is actively seeking maintainers per the README, which raises concerns about long-term support, bug fixes, and feature updates.

Configuration Complexity and Pitfalls

Requires careful setup of git history modes and fetch-depth, with documented issues like errors in 'full' history mode and inconsistencies in prerelease handling, as noted in issue #266.

Limited to Lightweight Tags

Only creates lightweight tags, lacking support for annotated tags that are often required for signed releases or detailed metadata in secure workflows.

Frequently Asked Questions

Quick Stats

Stars873
Forks394
Contributors0
Open Issues29
Last commit10 months ago
CreatedSince 2019

Tags

#hacktoberfest#semver#devops#release-automation#git-tagging#ci-cd#automation#github-actions#versioning

Included in

GitHub Actions27.6k
Auto-fetched 1 day ago

Related Projects

Create a PR for Changes to your Repository in the Actions WorkspaceCreate a PR for Changes to your Repository in the Actions Workspace

A GitHub action to create a pull request for changes to your repository in the actions workspace

Stars2,802
Forks545
Last commit18 days ago
Automatically merge PRs That Are ReadyAutomatically merge PRs That Are Ready

GitHub action to automatically merge pull requests that are ready

Stars920
Forks217
Last commit1 year ago
Automatically Rebase a PRAutomatically Rebase a PR

GitHub Action to automatically rebase PRs

Stars702
Forks141
Last commit2 years ago
Auto-Approve PRsAuto-Approve PRs

👍 GitHub Action for automatically approving GitHub pull requests

Stars476
Forks94
Last commit2 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub