mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-24 09:26:52 +00:00
Update protobufs and regenerate classes
This commit is contained in:
parent
b51be320dd
commit
3c7670186a
14
.github/workflows/update_protobufs.yml
vendored
14
.github/workflows/update_protobufs.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: "Update protobufs"
|
name: "Update protobufs and regenerate classes"
|
||||||
on: workflow_dispatch
|
on: workflow_dispatch
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -15,10 +15,22 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git pull --recurse-submodules
|
git pull --recurse-submodules
|
||||||
git submodule update --remote --recursive
|
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
|
- name: Commit update
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name 'github-actions'
|
git config --global user.name 'github-actions'
|
||||||
git config --global user.email 'bot@noreply.github.com'
|
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 remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
|
||||||
git add proto
|
git add proto
|
||||||
|
git add mesh
|
||||||
git commit -m "Update protobuf submodule" && git push || echo "No changes to commit"
|
git commit -m "Update protobuf submodule" && git push || echo "No changes to commit"
|
||||||
|
Loading…
Reference in New Issue
Block a user