Skip to content

Update dgrpc dependency to latest version #3580

Update dgrpc dependency to latest version

Update dgrpc dependency to latest version #3580

Workflow file for this run

name: Buf
on:
pull_request:
push:
tags:
- v*
branches:
- develop
- release/v*
- feature/*
jobs:
buf:
runs-on: ubuntu-24.04
if: "${{ github.event.head_commit == null || !startsWith(github.event.head_commit.message, 'GitBook: [#') }}"
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup buf
uses: bufbuild/buf-setup-action@v1
with:
github_token: ${{ github.token }}
- name: Lint protos
# TODO: Consider enabling this after fixing or ignoring the current linting errors?
if: false
uses: bufbuild/buf-lint-action@v1
- name: Check for breaking changes
if: github.event_name == 'pull_request'
uses: bufbuild/buf-breaking-action@v1
with:
input: proto
against: "https://github.com/${{ github.repository }}.git#branch=${{ github.base_ref }}"
- name: Push to Buf registry
if: github.event_name != 'pull_request'
env:
BUF_TOKEN: ${{ secrets.BUF_TOKEN }}
run: |
# --git-metadata automatically sets labels based on git branches/tags
# and source-control-url from the git remote
if [[ "${{ github.ref }}" == refs/tags/v* ]]; then
# For tags, also push to 'main' label so docs stay up to date
echo "Running: buf push proto --git-metadata --label main"
buf push proto --git-metadata --label main
else
echo "Running: buf push proto --git-metadata"
buf push proto --git-metadata
fi