Skip to content

Commit

Permalink
Merge pull request #20 from robzr/dev
Browse files Browse the repository at this point in the history
fix action path to sver
  • Loading branch information
robzr committed Apr 9, 2024
2 parents daa82ca + 2129fdb commit 6b26099
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The `output` output will contain the result, regardless of type (string, boolean
with:
command: version

- if: steps.sver.outputs.output == 'v1.2.4'
- if: steps.sver.outputs.output == 'v1.2.5'
...
```
Commands that return a boolean will return a boolean-as-string.
Expand Down Expand Up @@ -78,19 +78,17 @@ for **sver**.
convenient ways to install it.

#### asdf
The [asdf-sver](https://github.com/robzr/asdf-sver) plugin enables version management for **sver**. A
[PR](https://github.com/asdf-vm/asdf-plugins/pull/965) has been opened for inclusion into the asdf plugin registry; in
the meantime you can manually specify the asdf plugin repo.
The [asdf-sver](https://github.com/robzr/asdf-sver) plugin enables version management for **sver**.
```bash
asdf plugin add sver https://github.com/robzr/asdf-sver.git
asdf plugin add sver
asdf install sver latest
asdf global sver latest
```

#### curl
You can simply curl a version directly.
```bash
curl -LO https://github.com/robzr/sver/releases/download/v1.2.4/sver
curl -LO https://github.com/robzr/sver/releases/download/v1.2.5/sver
```

#### Homebrew
Expand All @@ -103,7 +101,7 @@ brew install sver
### Command line usage
See `sver help` for documentation.
```text
sver v1.2.4 (https://github.com/robzr/sver) self contained cli tool and function
sver v1.2.5 (https://github.com/robzr/sver) self contained cli tool and function
library implementing a Semantic Versioning 2 compliant parser and utilities.
Written in optimized, portable, pure Bash (v3)+ for simplicity & speed.
Expand Down
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ runs:
INPUT: ${{ inputs.input }}
INPUT_FILE: /dev/null
INPUT_COMMAND: ${{ inputs.input-command }}
SVER_BIN: ${{ github.action_path }}sver
SVER_BIN: ${{ github.action_path }}/sver
id: run
run: |
# steps.run
Expand Down
2 changes: 1 addition & 1 deletion sver
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# shellcheck disable=SC1008,SC2015,SC2096
# shfmt -i 2 -ci -w

SVER_VERSION=v1.2.4
SVER_VERSION=v1.2.5
SVER_INTRO="\
sver ${SVER_VERSION} (https://github.com/robzr/sver) self contained cli tool and function
library implementing a Semantic Versioning 2 compliant parser and utilities.
Expand Down

0 comments on commit 6b26099

Please sign in to comment.