Skip to content

Commit 32e55f3

Browse files
committed
Fix GitHub action.
1 parent f5b7195 commit 32e55f3

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/google-rpc-status-synced.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ jobs:
1010
- uses: actions/checkout@v5
1111
- run: ./proto/update_google_rpc_status.sh
1212
- run: |
13-
if git diff --exit-code proto/google/rpc/status.proto; then
14-
exit 0
13+
DIFF=$(git diff proto/google/rpc/status.proto)
14+
if [ -n "$DIFF" ]; then
15+
echo "$DIFF"
16+
echo ""
17+
echo "ERROR: proto/google/rpc/status.proto is not synced with upstream."
18+
echo "Please run ./proto/update_google_rpc_status.sh to fix it."
19+
exit 1
1520
fi
16-
echo "Error: google/rpc/status.proto is not synced with upstream."
17-
echo "Please run `./proto/update_google_rpc_status.sh` to fix it."
18-
exit 1
21+
echo "SUCCESS: proto/google/rpc/status.proto is synced with upstream."

0 commit comments

Comments
 (0)