Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix action path to sver #20

Merged
merged 3 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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