Skip to content

Commit

Permalink
Merge branch 'master' into v2
Browse files Browse the repository at this point in the history
  • Loading branch information
battila7 committed Jan 23, 2021
2 parents 5bae917 + 7512318 commit 90eb8fc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,29 @@ The pushed version with the leading `v` stripped. If `github.ref` was `refs/tags

If the version does not start with a leading `v` character, then the value of this output is the same as that of `version`.

### `is-sever`
### `is-semver`

Set to `true` if the pushed version is a valid [semver](https://semver.org/) value. If it's not, then this output will not be set.

### `major`

The semver major version, for example `1` in the case of `v1.2.3-ALPHA.0-BUILD.1`.
The semver major version, for example `1` in the case of `v1.2.3-ALPHA.0+BUILD.1`.

### `minor`

The semver minor version, for example `2` in the case of `v1.2.3-ALPHA.0-BUILD.1`.
The semver minor version, for example `2` in the case of `v1.2.3-ALPHA.0+BUILD.1`.

### `patch`

The semver patch version, for example `3` in the case of `v1.2.3-ALPHA.0-BUILD.1`.
The semver patch version, for example `3` in the case of `v1.2.3-ALPHA.0+BUILD.1`.

### `prerelease`

The semver prerelease version, for example `ALPHA.0` in the case of `v1.2.3-ALPHA.0-BUILD.1`.
The semver prerelease version, for example `ALPHA.0` in the case of `v1.2.3-ALPHA.0+BUILD.1`.

### `build`

The semver build version, for example `BUILD.1` in the case of `v1.2.3-ALPHA.0-BUILD.1`.
The semver build version, for example `BUILD.1` in the case of `v1.2.3-ALPHA.0+BUILD.1`.

## Example usage

Expand Down
10 changes: 5 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ outputs:
is-semver:
description: 'Set to true if the pushed version is a valid semver value. Undefined otherwise.'
major:
description: 'The semver major version, for example "1" in the case of "v1.2.3-ALPHA.0-BUILD.1"'
description: 'The semver major version, for example "1" in the case of "v1.2.3-ALPHA.0+BUILD.1"'
minor:
description: 'The semver minor version, for example "2" in the case of "v1.2.3-ALPHA.0-BUILD.1"'
description: 'The semver minor version, for example "2" in the case of "v1.2.3-ALPHA.0+BUILD.1"'
patch:
description: 'The semver patch version, for example "3" in the case of "v1.2.3-ALPHA.0-BUILD.1"'
description: 'The semver patch version, for example "3" in the case of "v1.2.3-ALPHA.0+BUILD.1"'
prerelease:
description: 'The semver prerelease version, for example "ALPHA.0" in the case of "v1.2.3-ALPHA.0-BUILD.1"'
description: 'The semver prerelease version, for example "ALPHA.0" in the case of "v1.2.3-ALPHA.0+BUILD.1"'
build:
description: 'The semver build version, for example "BUILD.1" in the case of "v1.2.3-ALPHA.0-BUILD.1"'
description: 'The semver build version, for example "BUILD.1" in the case of "v1.2.3-ALPHA.0+BUILD.1"'
runs:
using: 'node12'
main: 'dist/index.js'
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "get-version-action",
"version": "2.2.0",
"version": "2.2.1",
"description": "A GitHub Action which extracts the version from github.ref.",
"main": "src/index.js",
"scripts": {
Expand Down

0 comments on commit 90eb8fc

Please sign in to comment.