.gitbay/ci.yml
27 lines · 1434 bytes
1# Weekly man-page catalog sync, ported from the GitHub workflow. The change
2# lands as an MR for review, never straight on main. The script refuses to
3# write a suspiciously short list, so an upstream markup change can't
4# silently gut the catalog.
5jobs:
6 # Reads every view file for icon-only controls without accessibility
7 # labels — no build, no simulator. The xcodebuild test plan is not
8 # ported: it needs a macOS runner this instance does not have.
9 accessibility:
10 steps:
11 - python3 scripts/check_accessibility.py
12 sync-man-pages:
13 schedule: "0 6 * * 1"
14 steps:
15 - python3 scripts/sync_man_pages.py
16 - |
17 set -e
18 if git diff --quiet -- Hutch/Resources/man-pages.json; then
19 echo "catalog unchanged"
20 exit 0
21 fi
22 git -c user.name=ci -c user.email=ci@gitbay.org checkout -q -B automated/man-page-catalog
23 git -c user.name=ci -c user.email=ci@gitbay.org commit -qam "Sync bundled man page catalog with man.sr.ht"
24 git push -qf origin automated/man-page-catalog
25 if ! ssh git@127.0.0.1 mr list krz/hutch --json | grep -q "automated/man-page-catalog"; then
26 ssh git@127.0.0.1 "mr create krz/hutch --source automated/man-page-catalog --target main --title 'Sync bundled man page catalog' --body 'Automated update from scripts/sync_man_pages.py. Review the diff to Hutch/Resources/man-pages.json before merging.'"
27 fi