Commit Graph
7 Commits
Author SHA1 Message Date
KenanZhuandClaude 84452c2a18 fix(ci): QUICK-REF-MAX marker is ABOVE data row, not below
The workflow read MARKER-1 (line above marker = separator line),
returning '-----------------' as the version. The data row is BELOW
the marker. Fixed both read and update steps to use MARKER+1.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-23 10:49:46 +08:00
KenanZhuandClaude 6fc74fd648 fix(ci): replace grep -P/sed regex with awk for portability
grep -oP (Perl regex) failed on Ubuntu runner, returning empty current
version. Replaced version parsing with awk -F'|' to extract from the
pipe-separated Quick Reference table by column index.

Also replaced the Quick Reference update sed with awk -i inplace for
column-based editing, avoiding fragile regex on formatted table cells.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-23 10:47:36 +08:00
KenanZhuandClaude 6bcc7d791f fix(ci): use GitHub API instead of Gitea API for release tracking
Gitea.com API returned 404. Switched to GitHub's public API:
https://api.github.com/repos/go-gitea/gitea/releases/latest

No auth needed for public repo; 60 req/h is ample for daily cron.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-23 10:42:48 +08:00
KenanZhuandClaude 9075a5694e fix(ci): cross-validate and fix tracker workflow — 4 bugs squashed
Bug fixes found during cross-validation:

1. VERSION-INSERT marker placed before table header → moved after separator
   line so new rows insert between separator and first data row.

2. Badge sed pattern 'tested\)-[0-9a-z.]*\(blue\)' never matched because
   URL has 'tested-blue' not 'tested)-...'. Fixed to match URL-encoded
   format: '%20<version>%20tested-blue'.

3. Quick Reference sed depended on '| ✅' status literal. Changed to
   '| [^|]*' to match any status text, always setting to ⏳ on update.

4. Gitea API returns 'v1.27.0' tag_name but docs use '1.27.0'. Added
   '${NEW_VERSION#v}' to strip v prefix.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-23 10:39:20 +08:00
KenanZhuandClaude 5648f73d45 refactor(ci): use marker comments instead of regex for tracker workflow
Add TRACKER: HTML comment markers to COMPATIBILITY.md, README.md, and
all 5 translation READMEs. Rewrite gitea-tracker.yml to use grep -n
for precise line-based insertion and sed line-address editing.

Markers introduced:
- TRACKER:QUICK-REF-MAX  — Quick Reference max tested version
- TRACKER:VERSION-INSERT — Version History row insertion point
- TRACKER:LATEST-VERIFIED — latest verified note version
- TRACKER:BADGE — shields.io badge version
- TRACKER:LATEST-TESTED — latest tested version in READMEs

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-23 10:34:43 +08:00
KenanZhuandClaude 41caba06c0 chore: remove webhook config, keep schedule + manual trigger only
Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-23 10:30:28 +08:00
KenanZhuandClaude 15509e01ac ci: add Gitea version tracker workflow with auto-PR creation
- Daily cron + repository_dispatch webhook + manual workflow_dispatch
- Fetches latest Gitea release via API, compares with current max tested
- On new version: updates COMPATIBILITY.md matrix, README badges (all 6
  languages), creates PR with verification checklist
- Webhook setup instructions in COMPATIBILITY.md
- Uses peter-evans/create-pull-request for PR automation

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-23 10:28:54 +08:00