Skip to content

Commit

Permalink
fix git commit issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MeWu-IDM committed Sep 26, 2024
1 parent f0f543e commit 316310b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,18 @@ jobs:
git checkout --orphan docs
fi
if [ -d gallery ]; then
git rm -r --cached gallery
else
echo "gallery folder not found, No cleanup, continue to commit...."
fi
# Add, commit, and push changes
# Check if there are changes to commit
if git diff-index --quiet HEAD --; then
echo "No changes to commit."
else
# Commit and push changes
# First Remove any files in the gallery directory that no longer exist locally
git rm -r --cached gallery
# Add all current changes from the gallery folder
git add -A gallery
git commit -m "Update rendered Quarto files for GitHub Pages (commit: ${{ github.sha }})"
Expand Down

0 comments on commit 316310b

Please sign in to comment.