Skip to content

A github action to get the last semver branch in a repository that matches a prefix (fork to include Y.X versioning)

License

Notifications You must be signed in to change notification settings

vdo/github-action-get-regex-branch

 
 

Repository files navigation

Get Last Semantic Version and Semantic Version Branch Name Javascript Action

This action gets the last semantic version and semantic version branch in a repository that matches a prefix provided by the user.

Inputs

regex-string

Required A desired string to match against all the branches in the repository. Default ''.

Outputs

last-semver

The last semantic version found from branches that contain the regex-string input.

last-semver-branch

The branch in which the last semantic version was pulled from.

Example usage

- name: Get Last Branch and Semantic Version Containing String
      id: lrb
      uses: jessicalostinspace/github-action-get-regex-branch@v1.0.2
      with:
        regex-string: 'release-v' 

About

A github action to get the last semver branch in a repository that matches a prefix (fork to include Y.X versioning)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 52.5%
  • Shell 47.5%