Skip to content

Action to generate a version number.

License

Notifications You must be signed in to change notification settings

action-pack/bump

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

571 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Action to generate a version number.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 5