diff --git a/README.md b/README.md index ad06883..21ba5c2 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: bufbuild/buf-action@v0.1.2 + - uses: bufbuild/buf-action@v0.1.3 with: username: ${{ secrets.BUF_USERNAME }} token: ${{ secrets.BUF_TOKEN }} @@ -81,7 +81,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.1.2 +- uses: bufbuild/buf-action@v0.1.3 with: setup_only: true - run: buf build --error-format github-actions @@ -93,7 +93,7 @@ To skip or disable parts of the workflow, each step corresponds to a boolean fla For example to disable linting set the input `lint` to `false`: ```yaml -- uses: bufbuild/buf-action@v0.1.2 +- uses: bufbuild/buf-action@v0.1.3 with: lint: false ``` @@ -106,7 +106,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 input `format`: ```yaml -- uses: bufbuild/buf-action@v0.1.2 +- uses: bufbuild/buf-action@v0.1.3 with: format: ${{ contains(fromJSON('["push", "pull_request"]'), github.event_name) }} ``` @@ -119,7 +119,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 input `breaking` to check the contents of the commit message: ```yaml -- uses: bufbuild/buf-action@v0.1.2 +- uses: bufbuild/buf-action@v0.1.3 with: breaking: | contains(fromJSON('["push", "pull_request"]'), github.event_name) && @@ -133,7 +133,7 @@ See [GitHub Actions job context](https://docs.github.com/en/actions/reference/co To ensure the version of `buf` is consistent across workflows it's recommended to always use an explicit version. ```yaml -- uses: bufbuild/buf-action@v0.1.2 +- uses: bufbuild/buf-action@v0.1.3 with: version: 1.32.2 ``` @@ -153,7 +153,7 @@ The `username` and `token` values can be stored as secrets in the repository set The `token` value can be [generated from the Buf Schema Registry UI](https://buf.build/docs/bsr/authentication#create-an-api-token). ```yaml -- uses: bufbuild/buf-action@v0.1.2 +- uses: bufbuild/buf-action@v0.1.3 with: username: ${{ secrets.BUF_USERNAME }} token: ${{ secrets.BUF_TOKEN }} @@ -191,7 +191,7 @@ runs-on: ubuntu-latest permissions: contents: read steps: - - uses: bufbuild/buf-action@v0.1.2 + - uses: bufbuild/buf-action@v0.1.3 with: comment: false ``` @@ -203,7 +203,7 @@ To run the action for inputs not specified at the root of the repository, set th Breaking change detection will also be required to be set to include a `subdir` configured to the same input path. ```yaml -- uses: bufbuild/buf-action@v0.1.2 +- uses: bufbuild/buf-action@v0.1.3 with: input: protos breaking_against: | @@ -220,7 +220,7 @@ Alternatively, you may wish to pre-checkout the base branch for breaking changes with: path: base ref: ${{ github.event.pull_request.base.sha }} -- uses: bufbuild/buf-action@v0.1.2 +- uses: bufbuild/buf-action@v0.1.3 with: input: head/protos breaking_against: base/protos @@ -293,7 +293,7 @@ jobs: contents: read steps: - uses: actions/checkout@v4 - - uses: bufbuild/buf-action@v0.1.2 + - uses: bufbuild/buf-action@v0.1.3 with: version: 1.32.2 username: ${{ secrets.BUF_USERNAME }} diff --git a/RELEASE.md b/RELEASE.md index 9bc7b9d..27e79b5 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -8,7 +8,7 @@ We follow the best practices outlined in the [GitHub Actions documentation][gith 2. On a new branch, run the following commands to update the version of the action: ```bash -VERSION=X.Y.Z make update-version +VERSION=X.Y.Z make updateversion ``` 3. Open a PR titled "Prepare for vX.Y.Z". Once it's reviewed and CI passes, merge it. diff --git a/examples/buf-ci.yaml b/examples/buf-ci.yaml index 611d1ba..ef0861a 100644 --- a/examples/buf-ci.yaml +++ b/examples/buf-ci.yaml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: bufbuild/buf-action@v0.1.2 + - uses: bufbuild/buf-action@v0.1.3 with: username: ${{ secrets.BUF_USERNAME }} token: ${{ secrets.BUF_TOKEN }} diff --git a/examples/only-checks.yaml b/examples/only-checks.yaml index a5e2ff2..7e6e5e7 100644 --- a/examples/only-checks.yaml +++ b/examples/only-checks.yaml @@ -11,4 +11,4 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: bufbuild/buf-action@v0.1.2 + - uses: bufbuild/buf-action@v0.1.3 diff --git a/examples/only-setup-defaults.yaml b/examples/only-setup-defaults.yaml index 946f547..7ca111a 100644 --- a/examples/only-setup-defaults.yaml +++ b/examples/only-setup-defaults.yaml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: bufbuild/buf-action@v0.1.2 + - uses: bufbuild/buf-action@v0.1.3 with: setup_only: true - env: diff --git a/examples/only-setup.yaml b/examples/only-setup.yaml index 1c1eec1..81bee5e 100644 --- a/examples/only-setup.yaml +++ b/examples/only-setup.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: bufbuild/buf-action@v0.1.2 + - uses: bufbuild/buf-action@v0.1.3 with: # Add username or token secrets to your repository settings to # authenticate with the Buf Schema Registry. diff --git a/examples/only-sync.yaml b/examples/only-sync.yaml index e96d96c..5dd23e9 100644 --- a/examples/only-sync.yaml +++ b/examples/only-sync.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: bufbuild/buf-action@v0.1.2 + - uses: bufbuild/buf-action@v0.1.3 with: username: ${{ secrets.BUF_USERNAME }} token: ${{ secrets.BUF_TOKEN }} diff --git a/examples/push-on-changes.yaml b/examples/push-on-changes.yaml index 5b31ef4..4323383 100644 --- a/examples/push-on-changes.yaml +++ b/examples/push-on-changes.yaml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: bufbuild/buf-action@v0.1.2 + - uses: bufbuild/buf-action@v0.1.3 with: username: ${{ secrets.BUF_USERNAME }} token: ${{ secrets.BUF_TOKEN }} diff --git a/examples/skip-on-commits.yaml b/examples/skip-on-commits.yaml index 4090b8d..5a21e74 100644 --- a/examples/skip-on-commits.yaml +++ b/examples/skip-on-commits.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: bufbuild/buf-action@v0.1.2 + - uses: bufbuild/buf-action@v0.1.3 with: username: ${{ secrets.BUF_USERNAME }} token: ${{ secrets.BUF_TOKEN }} diff --git a/examples/skip-on-labels.yaml b/examples/skip-on-labels.yaml index 010fa1d..a2b09e9 100644 --- a/examples/skip-on-labels.yaml +++ b/examples/skip-on-labels.yaml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: bufbuild/buf-action@v0.1.2 + - uses: bufbuild/buf-action@v0.1.3 with: username: ${{ secrets.BUF_USERNAME }} token: ${{ secrets.BUF_TOKEN }} diff --git a/examples/validate-push.yaml b/examples/validate-push.yaml index 248637d..f3972ca 100644 --- a/examples/validate-push.yaml +++ b/examples/validate-push.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: bufbuild/buf-action@v0.1.2 + - uses: bufbuild/buf-action@v0.1.3 with: # Username and token are required to authenticate with the Buf Schema Registry. username: ${{ secrets.BUF_USERNAME }} diff --git a/examples/version-env.yaml b/examples/version-env.yaml index 9e48bfd..979acb9 100644 --- a/examples/version-env.yaml +++ b/examples/version-env.yaml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: bufbuild/buf-action@v0.1.2 + - uses: bufbuild/buf-action@v0.1.3 with: setup_only: true - run: buf version diff --git a/examples/version-input.yaml b/examples/version-input.yaml index fc6c011..0e3c3c7 100644 --- a/examples/version-input.yaml +++ b/examples/version-input.yaml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: bufbuild/buf-action@v0.1.2 + - uses: bufbuild/buf-action@v0.1.3 with: setup_only: true version: 1.32.2 diff --git a/examples/version-latest.yaml b/examples/version-latest.yaml index 729d22d..87d04f4 100644 --- a/examples/version-latest.yaml +++ b/examples/version-latest.yaml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: bufbuild/buf-action@v0.1.2 + - uses: bufbuild/buf-action@v0.1.3 with: setup_only: true - run: buf version