Merge pull request #4805 from scruplelesswizard/update-classes-on-protobuf-update

Update classes on protobufs update
This commit is contained in:
Thomas Göttgens 2024-09-21 21:46:32 +02:00 committed by GitHub
commit 01203eb854
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,10 @@
name: "Update protobufs and regenerate classes"
on: workflow_dispatch
name: Update protobufs and regenerate classes
on:
pull_request:
branches:
- master
paths:
- protobufs/**
jobs:
update-protobufs:
@ -11,10 +16,6 @@ jobs:
with:
submodules: true
- name: Update submodule
run: |
git submodule update --remote protobufs
- name: Download nanopb
run: |
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8-linux-x86.tar.gz
@ -25,10 +26,11 @@ jobs:
run: |
./bin/regen-protos.sh
- name: Create pull request
uses: peter-evans/create-pull-request@v7
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
title: Update protobufs and classes
add-paths: |
protobufs
src/mesh
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