Skip to content

Commit 04485b4

Browse files
authored
feat: now pizza-cli runs via npx pizza (#15)
1 parent ead4b34 commit 04485b4

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Pizza Action
27-
uses: open-sauced/pizza-action@v2.2.0
27+
uses: open-sauced/pizza-action@latest
2828
with:
2929
# optional and default is "latest". Add this parameter if you want to use a specific version, e.g. v2.0.0
3030
cli-version: "v2.2.0"
@@ -44,14 +44,11 @@ The pizza CLI's "generate codeowners ./ --tty-disable" command requires a full r
4444

4545
### `cli-version`
4646

47-
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`.
47+
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.2.0`.
4848

4949
### `pizza-args`
5050

51-
Arguments to pass to the pizza CLI. Default is `generate codeowners /repository --tty-disable`.
52-
53-
> [!NOTE]
54-
> `/repository` is the path to the repository root where the pizza-cli will be run in Docker.
51+
Arguments to pass to the pizza CLI. Default is `generate codeowners ./ --tty-disable`.
5552

5653
### `commit-and-pr`
5754

action.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ inputs:
1010
required: false
1111
pizza-args:
1212
description: "OpenSauced Pizza CLI command to run"
13-
default: "generate codeowners /repository --tty-disable"
13+
default: "generate codeowners ./ --tty-disable"
1414
required: false
1515
commit-and-pr:
1616
description: "Commit and push changes"
@@ -29,16 +29,8 @@ runs:
2929
with:
3030
fetch-depth: 0
3131

32-
- name: Set up Docker image
33-
run: echo "DOCKER_IMAGE=ghcr.io/open-sauced/pizza-cli:${{ inputs.cli-version }}" >> $GITHUB_ENV
34-
shell: bash
35-
36-
- name: Check pizza CLI version
37-
run: docker run ${{ env.DOCKER_IMAGE }} version
38-
shell: bash
39-
4032
- name: Run pizza CLI command
41-
run: docker run -v ./:/repository ${{ env.DOCKER_IMAGE }} ${{ inputs.pizza-args }}
33+
run: npx --yes pizza@${{ inputs.cli-version }} ${{ inputs.pizza-args }}
4234
shell: bash
4335
working-directory: ${{ github.workspace }}
4436

0 commit comments

Comments
 (0)