mirror of
https://github.com/tiennm99/miti99bot.git
synced 2026-08-21 06:26:52 +00:00
fix(deploy): include stats in CI ModulesCSV override
SAM CLI's --parameter-overrides replaces samconfig.toml's overrides rather than merging them, so every CI deploy reset the stack's ModulesCSV to the prior value (which predated the stats module). The live Lambda's MODULES env was missing stats, so /stats was dispatched but never handled — the module factory was never called.
This commit is contained in:
@@ -59,7 +59,7 @@ jobs:
|
||||
# CI needs in the deployed stack must be listed here explicitly.
|
||||
# Telegram user IDs are public (visible to anyone the bot DMs), so
|
||||
# they live in this committed workflow rather than a secret.
|
||||
OVERRIDES="CronSharedSecret=$CRON_SECRET BotOwnerID=1064111334 AdminUserIDs=1064111334"
|
||||
OVERRIDES="CronSharedSecret=$CRON_SECRET BotOwnerID=1064111334 AdminUserIDs=1064111334 ModulesCSV=util,misc,wordle,loldle,lolschedule,twentyq,trading,stats"
|
||||
if [ -n "$ALERT_EMAIL" ]; then
|
||||
OVERRIDES="$OVERRIDES AlertEmail=$ALERT_EMAIL"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user