Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-stepsecurity committed Jul 17, 2024
1 parent db2a008 commit eeb6450
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A wrapper around [semver](https://www.npmjs.com/package/semver), so read [its do
## Usage

```yml
- uses: step-security/semver-utils@v1
- uses: step-security/semver-utils@v3
id: version
with:
# A version to work with
Expand Down Expand Up @@ -43,14 +43,14 @@ If the version cannot be parsed, all the outputs [will be equal to an empty stri
If `lenient` is `false`, the action [will fail](.github/workflows/default.yml#L18-L25).

```yml
- uses: step-security/semver-utils@v1
- uses: step-security/semver-utils@v3
id: lenient
with:
version: invalid
- run: |
echo "${{ steps.lenient.outputs.release }}" # (empty string)
- uses: step-security/semver-utils@v1
- uses: step-security/semver-utils@v3
id: strict
with:
version: invalid
Expand Down

0 comments on commit eeb6450

Please sign in to comment.