Skip to content
chevrons-up

GitHub Action

Go Version Bumpr

v1.1.0 Latest version

Go Version Bumpr

chevrons-up

Go Version Bumpr

Github Action that allows you to bump SemVer version for Go repositories

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Go Version Bumpr

uses: PackagrIO/action-bumpr-go@v1.1.0

Learn more about this action in PackagrIO/action-bumpr-go

Choose a version

action-bumpr-go

portfolio_view

Github Action that allows you to bump SemVer version for Go repositories

Documentation

Full documentation is available at PackagrIO/docs

Usage

name: Release
# This workflow is triggered manually
on:
  workflow_dispatch:
    inputs:
      version_bump_type:
        description: 'Version Bump Type (major, minor, patch)'
        required: true
        default: 'patch'
jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    container: golang
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Bump version
        id: bump_version
        uses: packagrio/action-bumpr-go@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          version_bump_type: ${{ github.event.inputs.version_bump_type }}
          github_token: ${{ secrets.GITHUB_TOKEN }}

Inputs

  • version_bump_type
  • version_metadata_path

Outputs

  • release_version