Skip to content

Commit 9ac620a

Browse files
committed
CI fixes
1 parent cd7b9fc commit 9ac620a

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/build-and-publish.yml

+5-10
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,17 @@ jobs:
3030
ssh-keyscan -H github.com > /etc/ssh/ssh_known_hosts 2> /dev/null
3131
- name: build
3232
run: |
33-
cd grpc-proto
3433
buf generate
35-
sed -i 's/go_eosgrpc/go-eosgrpc' build/*.go
36-
mv build ..
34+
sed -i 's/go_eosgrpc/go-eosgrpc/' build/*.go
3735
- name: push-git
3836
run: |
39-
git config user.email "[email protected]"
40-
git config user.name "cernbox-bot"
41-
cd grpc-proto
42-
commitid=$(git rev-parse HEAD)
43-
cd ..
4437
git clone git+ssh://[email protected]/cern-eos/go-eosgrpc
45-
cp build/*.go go-eosgrpc/
4638
cd go-eosgrpc
39+
git config user.email "[email protected]"
40+
git config user.name "cernbox-bot"
41+
cp ../grpc-proto/build/*.go .
4742
git add .
48-
git commit -m 'Synced to https://github.com/cern-eos/grpc-proto/tree/${commitid}'
43+
git commit -m 'Synced to https://github.com/cern-eos/grpc-proto/tree/${{ github.sha }}'
4944
git push origin main
5045
- name: setup-buf
5146
uses: bufbuild/buf-setup-action@v1

0 commit comments

Comments
 (0)