Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
git-branch

GitHub Action

Get Last Branch and Semantic Version Containing String

v1.0.4

Get Last Branch and Semantic Version Containing String

git-branch

Get Last Branch and Semantic Version Containing String

Returns the branch name and semantic version given a string

Installation

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

              

- name: Get Last Branch and Semantic Version Containing String

uses: jessicalostinspace/github-action-get-regex-branch@v1.0.4

Learn more about this action in jessicalostinspace/github-action-get-regex-branch

Choose a version

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'