Skip to content

Commit 753b984

Browse files
authored
Show filenames of diff from auto-generated files in CI (#727)
There is a test in the CI that checks for differences between the automatically generated files from OpenAPI. However, if this test fails, it doesn't indicate which files have differences. I will modify the CI to output this information.
1 parent 4a37d94 commit 753b984

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/generated-code.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
- if: ${{ github.event_name == 'pull_request' && env.DIFF_IS_EMPTY != 'true' && github.actor != 'renovate[bot]' }}
3434
run: |
3535
echo "There are changes in the generated codes. Please run 'generate-code.py' and commit the changes." >&2
36+
echo "The files with differences are as follows." >&2
37+
echo "$(git --no-pager diff --name-only HEAD)" >&2
3638
exit 1
3739
## Run if diff exists and event is not pull request, and make PR
3840
- if: ${{ github.event_name != 'pull_request' && env.DIFF_IS_EMPTY != 'true' }}

0 commit comments

Comments
 (0)