From 1cd5d1d8da551cb15925aa007e956281c0239cb8 Mon Sep 17 00:00:00 2001 From: kingchenc Date: Mon, 25 May 2026 15:08:01 +0200 Subject: [PATCH] fix(ci): Drop site/index.md from sync-about workflow (#55) site/ is local-only (listed in .git/info/exclude), so the sed call in the Patch step aborted the workflow on every push to main with "sed: can't read site/index.md: No such file or directory". That kept the README counter from being committed and skipped the wiki sync. Patches README only now. site/ stays out of CI until the marketing site is promoted. --- .github/workflows/sync-about.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sync-about.yml b/.github/workflows/sync-about.yml index 8232cc3c..2d79d03f 100644 --- a/.github/workflows/sync-about.yml +++ b/.github/workflows/sync-about.yml @@ -41,24 +41,24 @@ jobs: echo "About updated." fi - - name: Patch README + site counters + - name: Patch README counter if: github.event_name != 'pull_request' id: patch run: | n="${{ steps.count.outputs.count }}" - sed -i -E "s/[0-9]+ (streaming-first )?indicators/${n} \1indicators/g" README.md site/index.md + sed -i -E "s/[0-9]+ (streaming-first )?indicators/${n} \1indicators/g" README.md if git diff --quiet; then echo "changed=false" >> "$GITHUB_OUTPUT" else echo "changed=true" >> "$GITHUB_OUTPUT" fi - - name: Commit & push README + site + - name: Commit & push README if: steps.patch.outputs.changed == 'true' && github.event_name != 'pull_request' && github.ref == 'refs/heads/main' run: | git config user.name "wickra-bot" git config user.email "wickra-bot@users.noreply.github.com" - git add README.md site/index.md + git add README.md git commit -m "chore: sync indicator count to ${{ steps.count.outputs.count }} [skip ci]" git push