We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b60972 commit 764bec0Copy full SHA for 764bec0
.github/workflows/build-and-publish.yml
@@ -36,13 +36,14 @@ jobs:
36
git config user.name "cernbox-bot"
37
cp ../grpc-proto/build/*.go .
38
git add .
39
- git commit -m 'Synced to https://github.com/cern-eos/grpc-proto/tree/${{ github.sha }}'
40
- if [[ $? -ne 0 ]]; then
+ done=$(git commit -m 'Synced to https://github.com/cern-eos/grpc-proto/tree/${{ github.sha }}')
+ if [[ $done -eq 0 ]]; then
41
+ git push origin main
42
+ else
43
echo "The committed changes (if any) did not update the protobufs, nothing more to do"
44
gh run cancel ${{ github.run_id }}
45
gh run watch ${{ github.run_id }}
46
fi
- git push origin main
47
- name: setup-buf
48
uses: bufbuild/buf-setup-action@v1
49
- name: push-buf
0 commit comments