-
Notifications
You must be signed in to change notification settings - Fork 45
43 lines (39 loc) · 1.14 KB
/
buf.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Buf Push
on:
# Triggers the workflow on pushes to the main branch
push:
paths:
- 'proto/**'
branches:
- main
# Allow running this workflow manually from the Actions tab
workflow_dispatch:
jobs:
buf-push:
if: github.repository_owner == 'viamrobotics'
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/canon:amd64
steps:
- uses: actions/checkout@v3
- uses: bufbuild/[email protected]
- uses: bufbuild/buf-push-action@v1
with:
buf_token: ${{ secrets.BUF_TOKEN }}
dispatch:
needs: buf-push
if: github.repository_owner == 'viamrobotics'
runs-on: ubuntu-latest
container:
image: ghcr.io/viamrobotics/canon:amd64
strategy:
matrix:
repo: ['viamrobotics/python-sdk','viamrobotics/rust-sdk']
steps:
- name: Notify Proto Watchers
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.GIT_ACCESS_TOKEN }}
repository: ${{ matrix.repo }}
event-type: protos-updated
client-payload: '{"repo_name": "${{github.repository}}", "sha": "${{github.sha}}"}'