From a04f71c092b5fccdef9e22aac03ede4116943ada Mon Sep 17 00:00:00 2001 From: Bobby Iliev Date: Wed, 1 Oct 2025 11:33:54 +0300 Subject: [PATCH 1/2] Exlcude cli dir from ebook releases --- .github/workflows/ibis.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ibis.yml b/.github/workflows/ibis.yml index 6846dedd..00ff5174 100644 --- a/.github/workflows/ibis.yml +++ b/.github/workflows/ibis.yml @@ -55,10 +55,16 @@ 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 any changes excluding the cli directory + if git diff --quiet HEAD -- . ':(exclude)cli/'; then echo "changed=false" >> $GITHUB_OUTPUT else - echo "changed=true" >> $GITHUB_OUTPUT + # Double-check that changes are not only in cli directory + if git diff --quiet HEAD -- ebook/ index.html composer.json composer.lock; then + echo "changed=false" >> $GITHUB_OUTPUT + else + echo "changed=true" >> $GITHUB_OUTPUT + fi fi - name: Commit and push changes (GitHub Pages) @@ -66,6 +72,7 @@ jobs: 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 From ec3a93d03238cedee29e3cdec27886c014fe8250 Mon Sep 17 00:00:00 2001 From: Bobby Iliev Date: Wed, 1 Oct 2025 11:35:23 +0300 Subject: [PATCH 2/2] Exlcude cli dir from ebook releases --- .github/workflows/ibis.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ibis.yml b/.github/workflows/ibis.yml index 00ff5174..aa1ccfb7 100644 --- a/.github/workflows/ibis.yml +++ b/.github/workflows/ibis.yml @@ -55,16 +55,14 @@ jobs: - name: Check for changes id: verify-changed-files run: | - # Check if there are any changes excluding the cli directory - if git diff --quiet HEAD -- . ':(exclude)cli/'; 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 - # Double-check that changes are not only in cli directory - if git diff --quiet HEAD -- ebook/ index.html composer.json composer.lock; then - echo "changed=false" >> $GITHUB_OUTPUT - else - echo "changed=true" >> $GITHUB_OUTPUT - fi + echo "changed=true" >> $GITHUB_OUTPUT + echo "eBook-related changes detected" fi - name: Commit and push changes (GitHub Pages)