Skip to content
tag

GitHub Action

Get Next Release Version

v1.0.2 Latest version

Get Next Release Version

tag

Get Next Release Version

Get Next Release Version Action

Installation

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

              

- name: Get Next Release Version

uses: datalens-tech/[email protected]

Learn more about this action in datalens-tech/get-next-release-version-action

Choose a version

Get Next Release Version Action

CI GitHub Marketplace

Action for automatically generate next release version

Get Next Release Version Action

Usage

Example

jobs:
  get_version:
    permissions:
      contents: read
    outputs:
      version: ${{ steps.get_version.outputs.version }}
    steps:
      - name: Get Version
        id: get_version
        uses: datalens-tech/get-next-release-version-action@v1
        with:
          version_shift: patch
          version_override: v1.0.0
          release_filter_target_commitish: main

Action Inputs

Name Description Default
version_shift Version shift, used to calculate next version [major, minor, patch]. minor
version_template Version template to use for version parsing, must contain named groups <major>, <minor>, <patch> v$<major>.$<minor>.$<patch>
version_override Version override, if used then will be output directly.
release_version_regexp Version regexp to use for version parsing, must contain named groups 'major', 'minor', 'patch'. v?(?<major>[0-9]+)\.(?<minor>[0-9]+)\.(?<patch>[0-9]+).*$
release_filter_target_commitish Target commitish filter for latest release.
release_filter_prerelease Prerelease filter for latest release.
github_owner GitHub owner. ${{ github.repository_owner }}
github_repo GitHub repository. ${{ github.event.repository.name }}
github_token GitHub token. ${{ github.token }}

Action Outputs

Name Description
version Next release version.

Development

Global dependencies

  • nvm
  • node

Taskfile commands

For all commands see Taskfile or task --list-all.

License

MIT