Skip to content

Commit 426fd6c

Browse files
authored
Show filenames of diff from auto-generated files in CI (#520)
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 edcae64 commit 426fd6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/generated-code.yml

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
- if: ${{ github.event_name == 'pull_request' && env.DIFF_IS_EMPTY != 'true' && github.actor != 'renovate[bot]' }}
4242
run: |
4343
echo "There are changes in the generated codes. Please run 'generate-code.py' and commit the changes." >&2
44+
echo "The files with differences are as follows." >&2
45+
echo "$(git --no-pager diff --name-only HEAD)" >&2
4446
exit 1
4547
## Run if diff exists and event is not pull request, and make PR
4648
- if: ${{ github.event_name != 'pull_request' && env.DIFF_IS_EMPTY != 'true' }}

0 commit comments

Comments
 (0)