Files
Moonbase/updater/hooks.json
tonym 4e02339f59 updater: fix webhook secret template (backtick literal, not escaped quotes)
The -template parser is Go text/template; JSON-escaped \" broke the action.
Backtick raw-string literal is valid inside the JSON string and parses cleanly.
Config-only (mounted + hotreload) — no app rebuild.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-15 22:41:28 -05:00

16 lines
379 B
JSON

[
{
"id": "moonbase-update",
"execute-command": "/appdata/updater/update.sh",
"command-working-directory": "/appdata",
"response-message": "update started",
"trigger-rule": {
"match": {
"type": "value",
"value": "{{ getenv `UPDATER_SECRET` }}",
"parameter": { "source": "header", "name": "X-Update-Token" }
}
}
}
]