You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Skip docs/javadoc publish commit when nothing changed
The hardened gh-pages publish flow runs commitJavadoc/commitDocs under
'set -eo pipefail'. When the regenerated javadoc or docs are byte-identical
to what is already published, 'git add' stages nothing and 'git commit'
exits 1 with "nothing to commit, working tree clean", which set -e turns
into a build failure (the previous sh-based flow without set -e silently
tolerated this).
Guard the commit/push behind 'git diff --cached --quiet' so a no-op
republish is treated as a clean skip while still failing on real push
errors, and always remove the worktree afterwards.
0 commit comments