Add diff debug in CI in commit.sh · python/python-docs-pt-br@fd5d99f · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Commit fd5d99f

Browse files
authored
Add diff debug in CI in commit.sh
1 parent 8282ef9 commit fd5d99f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scripts/commit.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,17 @@ if [ -n "${untracked_files+x}" ]; then
2828
git add -v $untracked_files
2929
fi
3030

31+
# Debug in GitHub Actions
32+
set +u
33+
if [ -n "${CI+x}" ]; then
34+
echo "::group::status"
35+
git status
36+
echo "::endgroup::"
37+
echo "::group::diff"
38+
git diff
39+
echo "::endgroup::"
40+
fi
41+
set -u
42+
3143
# Commit only if there is any cached file
3244
git diff-index --cached --quiet HEAD || { git add -v $extra_files; git commit -vm "Update translations"; }

0 commit comments

Comments
 (0)

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.