Skip to content

Commit

Permalink
[ci] Migrate from buf-*-action to buf-action
Browse files Browse the repository at this point in the history
The `buf-*-action` family of actions have been deprecated in favor of
buf-action.
  • Loading branch information
marun committed Jan 7, 2025
1 parent 902377d commit 233d1a9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/buf-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/[email protected]
- uses: bufbuild/buf-push-action@v1
- uses: bufbuild/buf-action@v1
with:
input: "proto"
buf_token: ${{ secrets.BUF_TOKEN }}
token: ${{ secrets.BUF_TOKEN }}
version: 1.35.0
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,21 +129,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/[email protected]
with:
github_token: ${{ github.token }}
- uses: bufbuild/buf-lint-action@v1
- uses: bufbuild/buf-action@v1
with:
input: "proto"
github_token: ${{ github.token }}
# TODO(marun) Should this be enabled?
breaking: false
version: 1.35.0
check_generated_protobuf:
name: Up-to-date protobuf
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go-for-project
- uses: bufbuild/buf-setup-action@v1.31.0
- uses: bufbuild/buf-action@v1
with:
setup_only: true
github_token: ${{ github.token }}
version: 1.35.0
- shell: bash
run: scripts/protobuf_codegen.sh
- shell: bash
Expand Down
2 changes: 1 addition & 1 deletion scripts/protobuf_codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if ! [[ "$0" =~ scripts/protobuf_codegen.sh ]]; then
fi

## ensure the correct version of "buf" is installed
BUF_VERSION='1.31.0'
BUF_VERSION='1.35.0'
if [[ $(buf --version | cut -f2 -d' ') != "${BUF_VERSION}" ]]; then
echo "could not find buf ${BUF_VERSION}, is it installed + in PATH?"
exit 255
Expand Down

0 comments on commit 233d1a9

Please sign in to comment.