[auto]: add PR template #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: check_protobuf_files | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
jobs: | |
python_protobuf_check: | |
name: Check python protobuf files | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder-lite:latest | |
steps: | |
- name: Clone | |
uses: actions/checkout@v3 | |
- name: Save current generation | |
run: | | |
cp -r proto proto_current | |
rm proto/*_pb2.py | |
- name: Regenerate | |
run: | | |
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python make python_pb | |
cp ./vendor/nanopb/generator/proto/nanopb_pb2.py ./proto | |
- name: Compare regenerated files with tracked files | |
run: | | |
diff proto proto_current |