Update com_google_googleapis digest to ba245fa #483
This file contains 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: "proto" | |
on: push | |
jobs: | |
proto-lint: | |
runs-on: ubuntu-latest | |
name: "Buf: Lint" | |
steps: | |
# 1: Pull code. | |
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # renovate: tag=v2 | |
# 2: Setup Buf. | |
- uses: bufbuild/buf-setup-action@v1.8.0 | |
with: | |
github_token: ${{ github.token }} | |
# 3: Run linter. | |
- uses: bufbuild/buf-lint-action@v1 | |
proto-breaking: | |
runs-on: ubuntu-latest | |
name: "Buf: Break Detector" | |
steps: | |
# 1: Pull code. | |
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # renovate: tag=v2 | |
# 2: Setup Buf. | |
- uses: bufbuild/buf-setup-action@v1.8.0 | |
with: | |
github_token: ${{ github.token }} | |
# 3: Run break detector. | |
- uses: elide-tools/buf-breaking-action@46946d7bae1edc0758ffecb6087176e7590c6488 | |
env: | |
BUF_INPUT_HTTPS_USERNAME: ${{ github.actor }} | |
BUF_INPUT_HTTPS_PASSWORD: ${{ github.token }} | |
with: | |
against: 'https://github.com/OpenCannabis/Specification.git#branch=dev' | |
buf_token: ${{ secrets.BUF_TOKEN }} | |
buf_input_https_username: ${{ github.actor }} | |
buf_input_https_password: ${{ github.token }} | |
proto-push: | |
runs-on: ubuntu-latest | |
name: "Buf: Push" | |
needs: [proto-lint, proto-breaking] | |
steps: | |
# 1: Pull code. | |
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # renovate: tag=v2 | |
# 2: Setup Buf. | |
- uses: bufbuild/buf-setup-action@v1.8.0 | |
with: | |
github_token: ${{ github.token }} | |
# 3: Push to BSR. | |
- name: 'Model: Push to BSR' | |
uses: bufbuild/buf-push-action@v1 | |
with: | |
buf_token: ${{ secrets.BUF_TOKEN }} | |