From a83959d738585983279e3dd5d4914b67f1d5671c Mon Sep 17 00:00:00 2001 From: DanielV Date: Tue, 13 May 2025 04:07:54 +0200 Subject: [PATCH] In case of proto-diff show changes and archive generated (#8698) Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> --- .github/workflows/ci-api-proto.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci-api-proto.yml b/.github/workflows/ci-api-proto.yml index d6469236d5..92d209cc34 100644 --- a/.github/workflows/ci-api-proto.yml +++ b/.github/workflows/ci-api-proto.yml @@ -57,6 +57,17 @@ jobs: event: 'REQUEST_CHANGES', body: 'You have altered the generated proto files but they do not match what is expected.\nPlease run "script/api_protobuf/api_protobuf.py" and commit the changes.' }) + - if: failure() + name: Show changes + run: git diff + - if: failure() + name: Archive artifacts + uses: actions/upload-artifact@v4.6.2 + with: + name: generated-proto-files + path: | + esphome/components/api/api_pb2.* + esphome/components/api/api_pb2_service.* - if: success() name: Dismiss review uses: actions/github-script@v7.0.1