Skip to content

Commit

Permalink
Show filenames of diff from auto-generated files in CI (#727)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
eucyt authored Dec 25, 2024
1 parent 4a37d94 commit 753b984
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/generated-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
- if: ${{ github.event_name == 'pull_request' && env.DIFF_IS_EMPTY != 'true' && github.actor != 'renovate[bot]' }}
run: |
echo "There are changes in the generated codes. Please run 'generate-code.py' and commit the changes." >&2
echo "The files with differences are as follows." >&2
echo "$(git --no-pager diff --name-only HEAD)" >&2
exit 1
## Run if diff exists and event is not pull request, and make PR
- if: ${{ github.event_name != 'pull_request' && env.DIFF_IS_EMPTY != 'true' }}
Expand Down

0 comments on commit 753b984

Please sign in to comment.