Skip to content

Commit 00f4996

Browse files
authored
Show filenames of diff from auto-generated files in CI (#1509)
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 0485ef0 commit 00f4996

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/generate-code.yml

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

0 commit comments

Comments
 (0)