feat: trigger class update when protobufs are changed

This commit is contained in:
Jason Murray 2024-09-21 07:37:37 -07:00
parent 906b0233d2
commit 202699239f
No known key found for this signature in database
GPG Key ID: A931039A241EBC2A

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:
- meshtastic/**
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 protobugs