From 3c7670186aa6ac0cfae43706efaedd7040b896e4 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Wed, 26 Jan 2022 14:25:30 -0600 Subject: [PATCH] Update protobufs and regenerate classes --- .github/workflows/update_protobufs.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update_protobufs.yml b/.github/workflows/update_protobufs.yml index f84ad98a..e1a2854f 100644 --- a/.github/workflows/update_protobufs.yml +++ b/.github/workflows/update_protobufs.yml @@ -1,4 +1,4 @@ -name: "Update protobufs" +name: "Update protobufs and regenerate classes" on: workflow_dispatch jobs: @@ -15,10 +15,22 @@ jobs: run: | git pull --recurse-submodules git submodule update --remote --recursive + + - name: Download nanopb + run: | + wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.4-linux-x86.tar.gz + tar xvzf nanopb-0.4.4-linux-x86.tar.gz + mv nanopb-0.4.4-linux-x86 nanopb-0.4.4 + + - name: Re-generate protocol buffers + run: | + ./bin/regen-protos.sh + - name: Commit update run: | git config --global user.name 'github-actions' git config --global user.email 'bot@noreply.github.com' git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} git add proto + git add mesh git commit -m "Update protobuf submodule" && git push || echo "No changes to commit"