Skip to content

Commit dd67b46

Browse files
authored
auto update proto
1 parent 6fb2d35 commit dd67b46

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/protobuf.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Update protobuf files
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v3
12+
with:
13+
submodules: recursive
14+
15+
- name: Run install.sh
16+
run: |-
17+
chmod +x ./install.sh
18+
./install.sh
19+
20+
- name: Run protobuf.sh
21+
run: |-
22+
chmod +x ./protobuf.sh
23+
./protobuf.sh
24+
25+
- name: Commit and push if it changed
26+
run: |-
27+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
28+
git config --local user.name "github-actions[bot]"
29+
git diff --quiet && git diff --staged --quiet || (git add . ; git commit -m 'Update protobuf classes')
30+
git push

0 commit comments

Comments
 (0)