firmware/.github/workflows/update_protobufs.yml

34 lines
817 B
YAML
Raw Normal View History

name: "Update protobufs and regenerate classes"
2021-12-31 02:00:32 +00:00
on: workflow_dispatch
jobs:
update-protobufs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
2022-03-09 13:04:49 +00:00
uses: actions/checkout@v3
2021-12-31 02:00:32 +00:00
with:
submodules: true
2022-01-27 17:54:32 +00:00
- name: Update submodule
2021-12-31 02:00:32 +00:00
run: |
2022-05-21 19:24:50 +00:00
git submodule update --remote protobufs
2022-03-09 13:04:49 +00:00
- name: Download nanopb
run: |
2022-06-17 13:37:52 +00:00
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.6-linux-x86.tar.gz
tar xvzf nanopb-0.4.6-linux-x86.tar.gz
mv nanopb-0.4.6-linux-x86 nanopb-0.4.6
2022-03-09 13:04:49 +00:00
- name: Re-generate protocol buffers
run: |
2022-03-09 13:04:49 +00:00
./bin/regen-protos.sh
2022-01-27 17:54:32 +00:00
- name: Create pull request
uses: peter-evans/create-pull-request@v3
with:
add-paths: |
2022-05-12 10:45:30 +00:00
protobufs
2022-01-27 17:54:32 +00:00
src/mesh