Update GitHub Actions workflow for Buf push to trigger on version tag… #11
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 Push | |
| on: | |
| push: | |
| branches: | |
| - master | |
| tags: ['v*.*.*'] | |
| jobs: | |
| buf: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: bufbuild/buf-action@v1 | |
| with: | |
| # The token paramater is required to authenticate with the Buf Schema Registry. | |
| token: ${{ secrets.BUF_TOKEN }} | |
| # lint: ${{ github.event_name == 'push' }} | |
| format: ${{ github.event_name == 'push' }} | |
| breaking: ${{ github.event_name == 'push' }} |