Skip to content

Commit

Permalink
Prepare for v0.3.0 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
emcfarlane committed Jul 31, 2024
1 parent 4b64761 commit 5ba9512
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 28 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
token: ${{ secrets.BUF_TOKEN }}
```
Expand All @@ -56,7 +56,7 @@ To customize the behavior of the action, you can set the following parameters in
Add these parameters under the `with` section of the `uses` step in the workflow file.

```yaml
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
...
```
Expand Down Expand Up @@ -101,7 +101,7 @@ To disable parts of the workflow, each step corresponds to a boolean flag in the
For example to disable formatting set the parameter `format` to `false`:

```yaml
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
format: false
```
Expand All @@ -113,7 +113,7 @@ See [action.yml](action.yml) for all available parameters.
For reproducible builds, you can pin to an explicit version of `buf` by setting `version`.

```yaml
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
version: 1.35.0
```
Expand All @@ -133,7 +133,7 @@ To authenticate with the BSR, set the API token as the parameter `token`.
Generate a token from the [BSR UI](https://buf.build/docs/bsr/authentication#create-an-api-token) and add it to the [repository secrets](https://docs.github.com/en/actions/reference/encrypted-secrets).

```yaml
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
token: ${{ secrets.BUF_TOKEN }}
```
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
token: ${{ secrets.BUF_TOKEN }}
+ pr_comment: false
Expand All @@ -175,7 +175,7 @@ To run the action for parameters not declared at the root of the repository,
set the parameter `input` to the directory of your `buf.yaml` file.

```yaml
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
input: <path/to/module>
```
Expand All @@ -184,7 +184,7 @@ Breaking change detection by default will use the `input` value as a subdirector
To customize this behavior, set the parameter `breaking_against` to the desired input.

```yaml
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
input: <path/to/module>
breaking_against: ${{ github.event.repository.clone_url }}#format=git,commit=${{ github.event.pull_request.base.sha }},subdir=<path/to/module>
Expand All @@ -201,7 +201,7 @@ and then set the value of `breaking_against` to the path of the base.
with:
path: base
ref: ${{ github.event.pull_request.base.sha }}
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
input: head/<path/to/module>
breaking_against: base/<path/to/module>
Expand All @@ -216,7 +216,7 @@ This will install `buf` and optionally login to the schema registry but no addit
Subsequent steps will have `buf` available in their $PATH and can invoke `buf` directly.

```yaml
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
setup_only: true
- run: buf build --error-format github-actions
Expand All @@ -230,7 +230,7 @@ To trigger steps on different events use the GitHub action context to deduce the
For example to enable formatting checks on both pull requests and push create an expression for the parameter `format`:

```yaml
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
format: ${{ contains(fromJSON('["push", "pull_request"]'), github.event_name) }}
```
Expand All @@ -243,7 +243,7 @@ To conditionally run checks based on user input, use the GitHub action context t
For example to disable breaking change detection on commits, create an expression on the parameter `breaking` to check the contents of the commit message:

```yaml
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
breaking: |
contains(fromJSON('["push", "pull_request"]'), github.event_name) &&
Expand Down
2 changes: 1 addition & 1 deletion examples/buf-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
token: ${{ secrets.BUF_TOKEN }}
2 changes: 1 addition & 1 deletion examples/disable-skip/buf-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
token: ${{ secrets.BUF_TOKEN }}
breaking: ${{ github.event_name == 'pull_request' }}
2 changes: 1 addition & 1 deletion examples/only-checks/buf-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
2 changes: 1 addition & 1 deletion examples/only-setup-defaults/buf-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
setup_only: true
- env:
Expand Down
2 changes: 1 addition & 1 deletion examples/only-setup/buf-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
# Add the parameter token as a secret in your repository settings
# to authenticate with the Buf Schema Registry.
Expand Down
2 changes: 1 addition & 1 deletion examples/only-sync/buf-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
token: ${{ secrets.BUF_TOKEN }}
2 changes: 1 addition & 1 deletion examples/push-on-changes/buf-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
token: ${{ secrets.BUF_TOKEN }}
2 changes: 1 addition & 1 deletion examples/skip-on-commits/buf-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
token: ${{ secrets.BUF_TOKEN }}
lint: |
Expand Down
2 changes: 1 addition & 1 deletion examples/skip-on-labels/buf-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
token: ${{ secrets.BUF_TOKEN }}
lint: |
Expand Down
2 changes: 1 addition & 1 deletion examples/validate-push/buf-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
# The token paramater is required to authenticate with the Buf Schema Registry.
token: ${{ secrets.BUF_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion examples/version-env/buf-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
setup_only: true
- run: buf version
2 changes: 1 addition & 1 deletion examples/version-input/buf-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
setup_only: true
version: 1.35.0
Expand Down
2 changes: 1 addition & 1 deletion examples/version-latest/buf-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-action@v0.2
- uses: bufbuild/buf-action@v0.3
with:
setup_only: true
- run: buf version
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "buf-action",
"version": "0.2.2",
"version": "0.3.0",
"description": "GitHub Action for buf",
"main": "src/main.ts",
"scripts": {
Expand Down

0 comments on commit 5ba9512

Please sign in to comment.