mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-01 10:19:59 +00:00
37 lines
905 B
YAML
37 lines
905 B
YAML
name: Update protobufs and regenerate classes
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- protobufs/**
|
|
|
|
jobs:
|
|
update-protobufs:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Download nanopb
|
|
run: |
|
|
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8-linux-x86.tar.gz
|
|
tar xvzf nanopb-0.4.8-linux-x86.tar.gz
|
|
mv nanopb-0.4.8-linux-x86 nanopb-0.4.8
|
|
|
|
- name: Re-generate protocol buffers
|
|
run: |
|
|
./bin/regen-protos.sh
|
|
|
|
- name: Commit changes
|
|
uses: EndBug/add-and-commit@v9
|
|
with:
|
|
add: src/mesh
|
|
author_name: CI Bot
|
|
author_email: meshtastic-ci-bot@users.noreply.github.com
|
|
default_author: github_actor
|
|
message: Update classes from protobufs
|