Action to generate a version number using repository variables.
- Creates two variables,
vars.MAJOR
andvars.MINOR
- Increments the minor version each time the action is called
- Increments the major version as soon as minor hits 100.
- uses: action-pack/bump@v2
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
- run: echo ${{ vars.MAJOR }}.${{ vars.MINOR }}
Required String
Repository Access token
Optional String
Owners name.
Optional String
Repository name.
Optional Boolean
Indicates the repo is an organization.
-
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 }}