From 540302a6c184cede53c90a553b374912f17a74d0 Mon Sep 17 00:00:00 2001 From: Giuseppe Lo Presti Date: Mon, 12 Aug 2024 15:12:19 +0200 Subject: [PATCH] CI: added buf.lock to clear warnings and merged steps --- .github/workflows/build-and-publish.yml | 7 ++----- buf.lock | 8 ++++++++ 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 buf.lock diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 5545ff7..1495b6d 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -22,18 +22,15 @@ jobs: run: | mkdir /root/.ssh python3 -c "import os; file = open('/root/.ssh/id_rsa', 'w'); file.write(os.environ['SSH_KEY']); file.close()" - shasum /root/.ssh/id_rsa chmod 400 /root/.ssh/id_rsa - stat /root/.ssh/id_rsa touch /root/.ssh/known_hosts chmod 400 /root/.ssh/known_hosts ssh-keyscan -H github.com > /etc/ssh/ssh_known_hosts 2> /dev/null - - name: build + - name: build-and-push run: | buf generate sed -i 's/go_eosgrpc/go-eosgrpc/' build/*.go - - name: push-git - run: | + cd .. git clone git+ssh://git@github.com/cern-eos/go-eosgrpc cd go-eosgrpc git config user.email "cbox@cern.ch" diff --git a/buf.lock b/buf.lock new file mode 100644 index 0000000..28b2182 --- /dev/null +++ b/buf.lock @@ -0,0 +1,8 @@ +# Generated by buf. DO NOT EDIT. +version: v1 +deps: + - remote: buf.build + owner: protocolbuffers + repository: wellknowntypes + commit: f17e05fe4a764a3482b8e033daec742e + digest: shake256:886495c560d96bc48bef49e17e3d33430fa1f6c735b0cee40ef83161824b01c2d2f342d81ca02aadeed52aa3cf4a8273d5ab9584fbb595b71e7e44240caedb00