Skip to content

Commit 7b42773

Browse files
committed
Fix CI conditional logic to exclude .github/ directory files
- Filter out .github/ directory files before checking for documentation changes - Prevents copilot-instructions.md and CI.yml changes from triggering docs deployment - Add debug output for better troubleshooting
1 parent 93c8f5f commit 7b42773

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ jobs:
6262
CHANGED_FILES=$(git diff --name-only HEAD~1 HEAD)
6363
echo "Changed files: $CHANGED_FILES"
6464
65-
if echo "$CHANGED_FILES" | grep -qE '(^src/|^docs/|\.md$|Project\.toml$|Manifest\.toml$)'; then
65+
# Filter out .github/ directory files and check for documentation-related changes
66+
DOC_CHANGED_FILES=$(echo "$CHANGED_FILES" | grep -v '^\.github/')
67+
echo "Non-.github files: $DOC_CHANGED_FILES"
68+
69+
if echo "$DOC_CHANGED_FILES" | grep -qE '(^src/|^docs/|\.md$|Project\.toml$|Manifest\.toml$)'; then
6670
echo "Documentation-related files changed - deploying docs"
6771
echo "docs_changed=true" >> $GITHUB_OUTPUT
6872
else

0 commit comments

Comments
 (0)