Skip to content

Commit e573970

Browse files
authored
Update protos.yml
1 parent c9ae144 commit e573970

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/protos.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,26 @@ jobs:
4949
rm -rf $TEMP_DIR
5050
5151
echo "Successfully copied the proto directory to $TARGET_DIR."
52+
53+
- name: Install Buf
54+
run: |
55+
# Download and install buf
56+
wget https://github.com/bufbuild/buf/releases/download/v1.7.0/buf-Linux-x86_64 -O /usr/local/bin/buf
57+
chmod +x /usr/local/bin/buf
58+
buf --version
59+
60+
- name: Generate Code with Buf
61+
run: |
62+
# Navigate to the proto directory and run buf generate
63+
buf generate
5264
5365
- name: Add and Commit Changes
5466
run: |
5567
git config --global user.name 'GitHub Actions Bot'
5668
git config --global user.email '<>'
5769
git add proto
58-
git commit -m "Update proto directory with latest changes"
70+
git add src/grpc/generated
71+
git commit -m "Update proto and generated sdk directory with latest changes"
5972
6073
- name: Push Changes
6174
env:

0 commit comments

Comments
 (0)