Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/ibis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,22 @@ jobs:
- name: Check for changes
id: verify-changed-files
run: |
if git diff --quiet HEAD -- ebook/en/export/ index.html; then
# Check if there are changes in eBook-related files specifically
# This will be true only if there are actual eBook changes (regardless of cli changes)
if git diff --quiet HEAD -- ebook/ index.html composer.json composer.lock; then
echo "changed=false" >> $GITHUB_OUTPUT
echo "No eBook-related changes detected"
else
echo "changed=true" >> $GITHUB_OUTPUT
echo "eBook-related changes detected"
fi

- name: Commit and push changes (GitHub Pages)
if: steps.verify-changed-files.outputs.changed == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
git config --local user.email "bobby@bobbyiliev.com"
git config --local user.name "Bobby Iliev"
# Only add eBook-related files, explicitly excluding cli directory
git add ebook/en/export/ index.html
git commit -m "🤖 Auto-update eBook files and GitHub Pages [skip ci]" || exit 0
git push
Expand Down