Skip to content

Commit f11b86f

Browse files
committed
fix: adjust Markflow installation to prevent broken pipe errors and increase ARG_MAX for large content
1 parent 03a91bf commit f11b86f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/wiki.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,13 @@ jobs:
8282
uses: actions/checkout@v4
8383

8484
- name: Install Markflow
85-
run: |
86-
curl -sL https://raw.githubusercontent.com/darmie/markflow/main/install.sh | bash
87-
# Fix broken pipe: echo to closed grep pipe on Linux (grep -m1 exits early, SIGPIPE kills echo)
88-
sed -i 's/echo "$content" | grep/{ echo "$content" || true; } | grep/g' "$HOME/.markflow/markflow"
85+
run: curl -sL https://raw.githubusercontent.com/darmie/markflow/main/install.sh | bash
8986

9087
- name: Build site
9188
run: |
9289
export PATH="$HOME/.markflow:$PATH"
90+
# Raise ARG_MAX for large pre-baked content (16 chapters exceed default ~2MB limit)
91+
ulimit -s unlimited
9392
mkdir -p site
9493
9594
# Copy website landing page to site root

0 commit comments

Comments
 (0)