Skip to content

Commit 8f9cf4b

Browse files
committed
conditionalize commit
1 parent f32981d commit 8f9cf4b

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/docs.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,12 @@ jobs:
9494
git config user.name 'LensKit Doc Bot'
9595
git config user.email 'docbot@lenskit.org'
9696
git add .
97-
git commit -m 'rebuild documentation'
98-
git push
97+
if git status --porcelain |grep '^.'; then
98+
git commit -m 'rebuild documentation'
99+
git push
100+
else
101+
echo "no changes to documentation"
102+
fi
99103
100104
- name: "🏷️ Tag release documentation"
101105
if: github.event_name == 'release'

0 commit comments

Comments
 (0)