Skip to content

Commit

Permalink
fix: simplified adding cli-version argument (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickytonline authored Sep 16, 2024
1 parent b349a46 commit 283f36e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
- name: Pizza Action
uses: open-sauced/[email protected]
with:
# optional and default is "@latest". Add this parameter if you want to use a specific version, e.g. v2.0.0
cli-version: "@v2.0.0"
# optional and default is "latest". Add this parameter if you want to use a specific version, e.g. v2.0.0
cli-version: "v2.1.0"
# optional and false by default. Set this to true if you want to have a pull request for the changes created automatically.
commit-and-pr: "true"
# optional
Expand All @@ -44,7 +44,7 @@ The pizza CLI's "generate codeowners ./ --tty-disable" command requires a full r

### `cli-version`

The version of the pizza CLI to use. Default is `@latest`. If using a numbered version, make sure to include the `@` symbol as well as a `v` before the version number. For example, `@v2.0.0`.
The version of the pizza CLI to use. Default is `latest`. If using a numbered version, make sure to prefix the version number with `v`. For example, `v2.0.0`.

### `pizza-args`

Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ runs:

- name: Install pizza CLI
run: |
go install github.com/open-sauced/pizza-cli${{ inputs.cli-version }}
go install github.com/open-sauced/pizza-cli@${{ inputs.cli-version }}
shell: bash

- name: Check pizza CLI version
Expand Down

0 comments on commit 283f36e

Please sign in to comment.