Skip to content

Commit

Permalink
[ci] Migrate from buf-*-action to buf-action (#3639)
Browse files Browse the repository at this point in the history
  • Loading branch information
marun authored Jan 8, 2025
1 parent 80b82e8 commit 18b8320
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 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
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,21 +129,21 @@ 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"
pr_comment: 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:
github_token: ${{ github.token }}
setup_only: true
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 18b8320

Please sign in to comment.