5 Commits

Author SHA1 Message Date
mikkeli 762ea8386e publish: drop --branch flag now that automation/songs is merged to main
/ publish (push) Failing after 35s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-09 18:05:43 +09:00
mikkeli 47dc018d6b publish: drop diff detection, always run --all
/ publish (push) Failing after 28s
Git diff is unreliable as a publish gate — failed runs silently drop
files. Wiki idempotency (commit SHA in banner) is now the sole
gating mechanism: unchanged pages are skipped, changed pages update.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-09 18:01:52 +09:00
mikkeli 28027a5ffd blank commit to re-trigger automation 2026-06-09 17:56:24 +09:00
mikkeli 316540f705 publish: clone auto-wiki from automation/songs branch
/ publish (push) Successful in 44s
main branch only has READMEs; renderer code lives on automation/songs.
Also adds --depth 1 since history isn't needed for a code dependency.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-09 17:52:59 +09:00
mikkeli 07e7533651 Merge pull request 'Wiki automation test #2' (#5) from autowiki/pulse into master
/ publish (push) Failing after 26s
Looks better than nothing to me
2026-06-09 08:50:53 +00:00
+1 -28
View File
@@ -34,22 +34,6 @@ jobs:
- name: Install Python deps
run: pip install --no-cache-dir -r auto-wiki/pipelines/songs/requirements.txt
- name: Detect changed files
id: diff
run: |
BASE="${{ github.event.before }}"
HEAD="${{ github.sha }}"
if [ -z "$BASE" ] || echo "$BASE" | grep -qE '^0+$'; then
echo "mode=all" >> "$GITHUB_OUTPUT"
else
git -C ncmr-songs diff --name-only "$BASE" "$HEAD" -- '*.md' \
| grep -v '^wip/' | grep -v '^README\.md' \
> /tmp/changed.txt 2>/dev/null || true
cat /tmp/changed.txt
echo "mode=incremental" >> "$GITHUB_OUTPUT"
echo "files=$(tr '\n' ' ' < /tmp/changed.txt)" >> "$GITHUB_OUTPUT"
fi
- name: Publish
env:
WIKI_API_URL: ${{ vars.WIKI_API_URL }}
@@ -58,15 +42,4 @@ jobs:
WIKI_BOT_PASSWORD: ${{ secrets.WIKI_BOT_PASSWORD }}
SOURCE_REF: ${{ github.sha }}
GITEA_REPO_URL: ${{ vars.URL_TO_GITEA }}/mikkeli/ncmr-songs
run: |
if [ "${{ steps.diff.outputs.mode }}" = "all" ]; then
python auto-wiki/pipelines/songs/render.py --source-dir ncmr-songs --all
else
FILES="${{ steps.diff.outputs.files }}"
if [ -z "$FILES" ]; then
echo "No changed .md files. Nothing to publish."
exit 0
fi
# shellcheck disable=SC2086
python auto-wiki/pipelines/songs/render.py --source-dir ncmr-songs --files $FILES
fi
run: python auto-wiki/pipelines/songs/render.py --source-dir ncmr-songs --all