Skip to content
plus

GitHub Action

Bump version number

v2 Latest version

Bump version number

plus

Bump version number

Action to generate a version number

Installation

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

              

- name: Bump version number

uses: action-pack/bump@v2

Learn more about this action in action-pack/bump

Choose a version

Bump version

Build Version Size

Action to generate a version number using repository variables.

Features ✨

  • Creates two variables, vars.MAJOR and vars.MINOR
  • Increments the minor version each time the action is called
  • Increments the major version as soon as minor hits 100.

Usage 🚀

- uses: action-pack/bump@v2
  with:
    token: ${{ secrets.REPO_ACCESS_TOKEN }}
- run: echo ${{ vars.MAJOR }}.${{ vars.MINOR }}

Inputs 📝

token

Required String Repository Access token

owner

Optional String Owners name.

repository

Optional String Repository name.

org

Optional Boolean Indicates the repo is an organization.

FAQ 💬

  • Why do I get the error 'Resource not accessible by integration'?

    This will happen if you use secrets.GITHUB_TOKEN.

    You need to create a personal access token instead.

    Go to your Github settings, select 'Developer settings' --> 'Personal access tokens' --> 'Tokens (classic)' and create a new token. Store its value in a secret, for example MY_TOKEN.

    Then refer to it like this:

    token: ${{ secrets.MY_TOKEN }}

Stars 🌟

Stars