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>
16 lines
379 B
JSON
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" }
|
|
}
|
|
}
|
|
}
|
|
]
|