Skip to content

Commit 6cb96a4

Browse files
committed
chore: enhance GitHub Actions workflow with debugging steps
- Added a debugging step to list markdown files and check the existence of the docs directory and README.md file. - Updated include-patterns to search for all markdown files in the repository.
1 parent a74da2f commit 6cb96a4

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/example.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,24 @@ jobs:
2424
# restore-keys: |
2525
# telegraph-mappings-
2626

27+
- name: Debug - List markdown files
28+
run: |
29+
echo "=== Repository structure ==="
30+
find . -name "*.md" -type f | head -20
31+
echo "=== Docs directory ==="
32+
ls -la docs/ || echo "docs/ directory doesn't exist"
33+
echo "=== Root README ==="
34+
ls -la README.md || echo "README.md doesn't exist"
35+
2736
- name: Convert markdown to Telegraph
2837
uses: cyanxiao/md-to-telegraph-action@release
2938
with:
3039
account-name: "md-to-telegraph-action"
3140
author-name: "Cyan Xiao"
3241
telegraph-token: "${{ secrets.TELEGRAPH_TOKEN }}"
3342
author-url: "https://github.com/${{ github.repository }}"
34-
include-patterns: "docs/**/*.md,README.md"
35-
exclude-patterns: "node_modules/**,dist/**"
43+
include-patterns: "**/*.md" # This will find ALL .md files
44+
exclude-patterns: "node_modules/**"
3645
output-file: "telegraph-pages.json"
3746
one-entry-mode: "true"
3847
replace-existing-pages: "true"

0 commit comments

Comments
 (0)