From 769618e24efc95cc6b815c4a46b70b609e07b6e0 Mon Sep 17 00:00:00 2001 From: Giuseppe Lo Presti Date: Mon, 12 Aug 2024 12:07:39 +0200 Subject: [PATCH] CI fixes --- .github/workflows/build-and-publish.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 061570a..d2bc6b1 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -30,22 +30,17 @@ jobs: ssh-keyscan -H github.com > /etc/ssh/ssh_known_hosts 2> /dev/null - name: build run: | - cd grpc-proto buf generate - sed -i 's/go_eosgrpc/go-eosgrpc' build/*.go - mv build .. + sed -i 's/go_eosgrpc/go-eosgrpc/' build/*.go - name: push-git run: | - git config user.email "cbox@cern.ch" - git config user.name "cernbox-bot" - cd grpc-proto - commitid=$(git rev-parse HEAD) - cd .. git clone git+ssh://git@github.com/cern-eos/go-eosgrpc - cp build/*.go go-eosgrpc/ cd go-eosgrpc + git config user.email "cbox@cern.ch" + git config user.name "cernbox-bot" + cp ../grpc-proto/build/*.go . git add . - git commit -m 'Synced to https://github.com/cern-eos/grpc-proto/tree/${commitid}' + git commit -m 'Synced to https://github.com/cern-eos/grpc-proto/tree/$({ vars.GITHUB_SHA }}' git push origin main - name: setup-buf uses: bufbuild/buf-setup-action@v1