Skip to content
check-square

GitHub Action

SEMVER-regexp-validator

v1.0.6 Latest version

SEMVER-regexp-validator

check-square

SEMVER-regexp-validator

Validate SEMVER version with official regex from semver.org

Installation

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

              

- name: SEMVER-regexp-validator

uses: morawskiOZ/[email protected]

Learn more about this action in morawskiOZ/semver-regexp-validator

Choose a version

Semver regexp validator action

Forked from rubenesp87/semver-validation-action

Adjusted logic using official Regex from semver docs for tag validation.

Inputs

version

Required Version to validate.

Example usage

uses: morawskiOZ/[email protected]
with:
  version: ${{ github.event.release.tag_name }}
uses: morawskiOZ/[email protected]
with:
  version: 'v0.7.9'
uses: morawskiOZ/[email protected]
with:
  version: '0.7.9-beta.1'