Skip to content

Commit

Permalink
fix: improve git change detection in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen1 committed Jan 19, 2025
1 parent 6b00c01 commit 3bb61ce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,8 @@ jobs:
COMMIT_SHA=$(git rev-parse HEAD)
BODO_COMMIT_MESSAGE=$(git log -1 --pretty=%B)
cd bodo-run.github.io
git add public/yek.sh public/yek.ps1
# Exit with 0 if no changes
if git diff --exit-code; then
git add -A
if [ -z "$(git status --porcelain)" ]; then
echo "No changes to commit"
exit 0
fi
Expand Down

0 comments on commit 3bb61ce

Please sign in to comment.