You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Andy Pixley bd97c6d502
[BRE-1186] Adding tests for version-check and semver support (#451)
3 months ago
..
README.md [BRE-1186] Adding tests for version-check and semver support (#451) 3 months ago
action.yml [BRE-1186] Adding tests for version-check and semver support (#451) 3 months ago

README.md

Version Check Action

Summary

Given a version and the validation type, will validate that the version is valid.
If the validation fails, the action run will result in an exit code of 1.

Inputs

  • Version - Version number string
  • Validation Type - Whether to use SemVer or CalVer (default) validation

Outputs

None

Example Snippets

Validating SemVer

    steps:
      - name: Validate version - semver
        uses: bitwarden/gh-actions/version-check@main
        with:
          version: 1.0.0
          validation_type: semver

Validating CalVer

    steps:
      - name: Validate version - calver
        uses: bitwarden/gh-actions/version-check@main
        with:
          version: 2025.6.1
          validation_type: calver # This is also the default if not provided