Skip to content

Commit 1674b80

Browse files
authored
chore(ci): print git diff on librarian check failure (#13450)
Update the `Check for generated code changes` step in the`librarian_generation_check.yaml` workflow to print the `git diff` to the console when changes are detected. This will help identify which files were modified and what the changes are directly from the CI logs. Fixes googleapis/librarian#6406
1 parent 582053d commit 1674b80

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/librarian_generation_check.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ jobs:
7373
run: |
7474
if [ -n "$(git status --porcelain)" ]; then
7575
git status
76+
echo "==================== GIT DIFF ===================="
77+
git diff
78+
echo "=================================================="
7679
echo "Regeneration produced code changes! Please run 'librarian generate --all' to update the generated files."
7780
exit 1
7881
fi

0 commit comments

Comments
 (0)