Skip to content

Commit c67a390

Browse files
committed
Show diff and archive generated files in case of chnages
1 parent 815ca43 commit c67a390

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,19 @@ jobs:
126126
echo "You have altered the generated proto files but they do not match what is expected."
127127
echo "Please run the following to update the generated files:"
128128
echo 'docker run -v "$PWD":/aioesphomeapi ghcr.io/esphome/aioesphomeapi-proto-builder:latest'
129-
echo "The diff is:"
130-
git diff
131129
exit 1
132130
fi
133131
name: Check protobuf files match
134132
if: ${{ matrix.python-version == '3.12' && matrix.extension == 'skip_cython' && matrix.os == 'ubuntu-latest' }}
135-
133+
- if: failure()
134+
name: Show changes
135+
run: git diff
136+
- if: failure()
137+
name: Archive artifacts
138+
uses: actions/upload-artifact@v4
139+
with:
140+
name: genrated-proto-files
141+
path: aioesphomeapi/*pb2.py
136142
benchmarks:
137143
name: Run benchmarks
138144
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)