Skip to content

Commit 9243caf

Browse files
authored
Chore: [AEA-0000] - only commit to gh-pages if there are changes (#723)
## Summary - Routine Change ### Details - only commit to gh-pages if there are changes
1 parent 6b7ff27 commit 9243caf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ jobs:
117117
- name: Update docs in github pages
118118
run: |
119119
cd gh-pages
120+
if git diff --quiet -- index.html; then
121+
echo "No changes in index.html. Skipping git add, commit, and push."
122+
exit 0
123+
fi
120124
git config user.name github-actions
121125
git config user.email github-actions@github.com
122126
git add "index.html"

0 commit comments

Comments
 (0)