From 6cb4900e0c0af1bebaca80a81aec913d71986646 Mon Sep 17 00:00:00 2001 From: Sacha Weatherstone Date: Fri, 31 Dec 2021 13:00:32 +1100 Subject: [PATCH 1/2] Create update_protobufs.yml --- .github/workflows/update_protobufs.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/update_protobufs.yml diff --git a/.github/workflows/update_protobufs.yml b/.github/workflows/update_protobufs.yml new file mode 100644 index 000000000..f84ad98a8 --- /dev/null +++ b/.github/workflows/update_protobufs.yml @@ -0,0 +1,24 @@ +name: "Update protobufs" +on: workflow_dispatch + +jobs: + update-protobufs: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + submodules: true + + - name: Update Submodule + run: | + git pull --recurse-submodules + git submodule update --remote --recursive + - 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 commit -m "Update protobuf submodule" && git push || echo "No changes to commit" From df75182bcf2cb7ac3e754f98fa8ff9191bfdb894 Mon Sep 17 00:00:00 2001 From: Sacha Weatherstone Date: Fri, 31 Dec 2021 13:04:34 +1100 Subject: [PATCH 2/2] Fix protobuf submodule --- proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto b/proto index 1d3b4806a..4a64080d1 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit 1d3b4806ab5dc4b8ab62063dbb5799ab900464e6 +Subproject commit 4a64080d160f9219768a4126414d41dc82a3d63c