Skip to content

datalens-tech/get-next-release-version-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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