mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-09 14:42:05 +00:00
feat: trigger class update when protobufs are changed
This commit is contained in:
parent
906b0233d2
commit
202699239f
26
.github/workflows/update_protobufs.yml
vendored
26
.github/workflows/update_protobufs.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user