Skip to content

Parses Git Tags that start with v and determines the next version

Notifications You must be signed in to change notification settings

gps/determine-next-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Determine Next Version GitHub Action

This action looks at git tags in a repository that begin with v, and are of format x.y.z, where x, y, and z are integers that represent the major, minor, and patch versions respectively. It then sets an output with x.y.z+1.

Inputs

gh_token

The GitHub token used to authenticate with GitHub.

Required

tag_prefix

Prefix to look for in version tags.

Required

Default Value

If unspecified, assumed to be v.

Outputs

next_build_version

Next build version to use.

Example Usage

- name: Determine next version
  uses: gps/determine_next_version@master
  id: next_version
  with:
    GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    TAG_PREFIX: v

- name: Tag commit
  uses: gps/tag_commit@master
  with:
    GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    TAG_NAME: v${{steps.next_version.outputs.NEXT_BUILD_VERSION}}

About

Parses Git Tags that start with v and determines the next version

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •