From 9ffa0b60c4e6081bc7dbab09a6d69488351985e7 Mon Sep 17 00:00:00 2001 From: Attila Bagossy Date: Sat, 23 Jan 2021 17:51:46 +0100 Subject: [PATCH 1/2] fix: typo and copy-pasta fixes in README and action.yml --- README.md | 12 ++++++------ action.yml | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index e7fcada..904b1a2 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/action.yml b/action.yml index 4bd35c9..bfded95 100644 --- a/action.yml +++ b/action.yml @@ -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' From 75123182c2535b1ebb47fff42d4a6b23cc355ccf Mon Sep 17 00:00:00 2001 From: Attila Bagossy Date: Sat, 23 Jan 2021 17:52:14 +0100 Subject: [PATCH 2/2] chore: bumped version to 2.2.1 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index fd86dd3..8926e85 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "get-version-action", - "version": "2.2.0", + "version": "2.2.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index ace398a..cd31cdf 100644 --- a/package.json +++ b/package.json @@ -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": {