De-slop internal docs + config (repo now fully em-dash-free) (#98)
Sync course wiki / sync-wiki (push) Successful in 4s
Sync course wiki / sync-wiki (push) Successful in 4s
Co-authored-by: claude <claude@jpaul.io> Co-committed-by: claude <claude@jpaul.io>
This commit was merged in pull request #98.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# Render the course (single source of truth = modules/) into the Gitea wiki on
|
||||
# every push to main. The wiki is generated BUILD OUTPUT — never hand-edit it.
|
||||
# every push to main. The wiki is generated BUILD OUTPUT; never hand-edit it.
|
||||
#
|
||||
# Runs on the stack's shared `docker` runners (Linux). To actually push the wiki it
|
||||
# needs a repo secret WIKI_TOKEN with wiki write (a scoped PAT/deploy token — NOT a
|
||||
# needs a repo secret WIKI_TOKEN with wiki write (a scoped PAT/deploy token, NOT a
|
||||
# site-admin token). Until that secret exists the job skips cleanly (stays green).
|
||||
name: Sync course wiki
|
||||
on:
|
||||
@@ -27,9 +27,9 @@ jobs:
|
||||
WIKI_TOKEN: ${{ secrets.WIKI_TOKEN }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
echo "runner: $(uname -srm) — $(python3 --version 2>/dev/null || echo 'python3 missing')"
|
||||
echo "runner: $(uname -srm); $(python3 --version 2>/dev/null || echo 'python3 missing')"
|
||||
if [ -z "${WIKI_TOKEN:-}" ]; then
|
||||
echo "::warning::WIKI_TOKEN secret not set — skipping wiki sync. Add the secret to enable auto-sync."
|
||||
echo "::warning::WIKI_TOKEN secret not set; skipping wiki sync. Add the secret to enable auto-sync."
|
||||
exit 0
|
||||
fi
|
||||
command -v python3 >/dev/null || { apt-get update && apt-get install -y --no-install-recommends python3; }
|
||||
|
||||
Reference in New Issue
Block a user