Skip to content

Commit

Permalink
Fix broken yaml in example (#33)
Browse files Browse the repository at this point in the history
Added missing steps + runs-on
  • Loading branch information
paul-sachs authored Oct 2, 2023
1 parent 342fc4c commit a654ff1
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,18 @@ Here's an example usage of `buf-push-action`:
on: push # Apply to all push
jobs:
push-module:
# Run `git checkout`
- uses: actions/checkout@v2
# Install the `buf` CLI
- uses: bufbuild/buf-setup-action@v1
# Push module to the BSR
- uses: bufbuild/buf-push-action@v1
with:
buf_token: ${{ secrets.BUF_TOKEN }}
create_visibility: private
draft: ${{ github.ref_name != 'main'}}
runs-on: ubuntu-latest
steps:
# Run `git checkout`
- uses: actions/checkout@v2
# Install the `buf` CLI
- uses: bufbuild/buf-setup-action@v1
# Push module to the BSR
- uses: bufbuild/buf-push-action@v1
with:
buf_token: ${{ secrets.BUF_TOKEN }}
create_visibility: private
draft: ${{ github.ref_name != 'main'}}
```
With this configuration, upon a push [branches, tags][github-workflow]
Expand Down

0 comments on commit a654ff1

Please sign in to comment.