File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 - uses : bufbuild/buf-breaking-action@v1
3030 with :
3131 against : ' https://github.com/viamrobotics/api.git#branch=main'
32-
33- validate-local-files :
34- name : Ensure dist/buf ran locally.
35- timeout-minutes : 5
36- runs-on : [self-hosted, x64]
37- container :
38- image : ghcr.io/viamrobotics/canon:amd64-cache
39- options : --platform linux/amd64
40- steps :
41- - uses : actions/checkout@v3
42- - name : Verify no uncommitted changes"
43- run : |
44- git init
45- git add .
46-
47- make dist/buf
48-
49- GEN_DIFF=$(git status -s)
50-
51- if [ -n "$GEN_DIFF" ]; then
52- echo '"make dist/buf" resulted in changes not in git' 1>&2
53- git status
54- exit 1
55- fi
Original file line number Diff line number Diff line change 1- name : Buf Push
1+ name : Compile Protos and Update Buf
22
33concurrency :
44 group : ${{ github.workflow }}-${{ github.ref }}
1616 workflow_dispatch :
1717
1818jobs :
19+ compile-protos :
20+ if : github.repository_owner == 'viamrobotics'
21+ runs-on : [self-hosted, x64]
22+ container :
23+ image : ghcr.io/viamrobotics/canon:amd64-cache
24+ options : --platform linux/amd64
25+ steps :
26+ - uses : actions/checkout@v3
27+ - uses : bufbuild/buf-setup-action@v1
28+ - uses : arduino/setup-protoc@v1
29+
30+ - name : Compile protos
31+ run : make dist/buf
32+
33+ - name : Add SHORT_SHA env property
34+ id : short_sha
35+ run : echo "::set-output name=short_sha::$(git rev-parse --short HEAD)"
36+
37+ - name : Commit + Push
38+ uses : EndBug/add-and-commit@v9.0.0
39+ with :
40+ default_author : github_actions
41+ message : Built new protos from ${{ steps.short_sha.outputs.short_sha }} [skip ci]
42+
43+ - name : Bump tag
44+ uses : anothrNick/github-tag-action@1.52.0
45+ env :
46+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47+ WITH_V : true
48+ DEFAULT_BUMP : patch
49+
1950 buf-push :
2051 if : github.repository_owner == 'viamrobotics'
2152 runs-on : [self-hosted, x64]
2253 container :
23- image : ghcr.io/viamrobotics/canon:amd64
54+ image : ghcr.io/viamrobotics/canon:amd64-cache
2455 steps :
2556 - uses : actions/checkout@v3
26- - uses : bufbuild/buf-setup-action@v1.8.0
57+ - uses : bufbuild/buf-setup-action@v1
2758 - uses : bufbuild/buf-push-action@v1
2859 with :
2960 input : proto/viam
You can’t perform that action at this time.
0 commit comments