Skip to content

Commit a654ff1

Browse files
authored
Fix broken yaml in example (#33)
Added missing steps + runs-on
1 parent 342fc4c commit a654ff1

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,18 @@ Here's an example usage of `buf-push-action`:
1414
on: push # Apply to all push
1515
jobs:
1616
push-module:
17-
# Run `git checkout`
18-
- uses: actions/checkout@v2
19-
# Install the `buf` CLI
20-
- uses: bufbuild/buf-setup-action@v1
21-
# Push module to the BSR
22-
- uses: bufbuild/buf-push-action@v1
23-
with:
24-
buf_token: ${{ secrets.BUF_TOKEN }}
25-
create_visibility: private
26-
draft: ${{ github.ref_name != 'main'}}
17+
runs-on: ubuntu-latest
18+
steps:
19+
# Run `git checkout`
20+
- uses: actions/checkout@v2
21+
# Install the `buf` CLI
22+
- uses: bufbuild/buf-setup-action@v1
23+
# Push module to the BSR
24+
- uses: bufbuild/buf-push-action@v1
25+
with:
26+
buf_token: ${{ secrets.BUF_TOKEN }}
27+
create_visibility: private
28+
draft: ${{ github.ref_name != 'main'}}
2729
```
2830
2931
With this configuration, upon a push [branches, tags][github-workflow]

0 commit comments

Comments
 (0)