Removed breaking change check for now #542
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Buf | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| branches: | |
| - develop | |
| - release/v* | |
| - feature/* | |
| jobs: | |
| buf: | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Setup buf | |
| uses: bufbuild/buf-setup-action@v1 | |
| with: | |
| github_token: ${{ github.token }} | |
| - name: Push to Buf registry | |
| 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 --error-format=github-actions --git-metadata --label=main | |
| else | |
| echo "Running: buf push proto --git-metadata" | |
| buf push proto --error-format=github-actions --git-metadata | |
| fi |