From 790a338f4d5412c94562ff788b9695fd4c10101c Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Tue, 13 Jan 2026 05:31:37 +1000 Subject: [PATCH] fix: add API key auth to Discord summary GitHub Action --- .github/workflows/discord-summary.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/discord-summary.yml b/.github/workflows/discord-summary.yml index 08d1e36..22e296d 100644 --- a/.github/workflows/discord-summary.yml +++ b/.github/workflows/discord-summary.yml @@ -20,13 +20,17 @@ jobs: echo "Generated conversation ID: $CONV_ID" - name: Trigger Discord Summary Agent + env: + TPMJS_API_KEY: ${{ secrets.TPMJS_API_KEY }} run: | echo "Triggering agent with conversation: ${{ steps.conv-id.outputs.conv_id }}" # POST to the agent conversation endpoint # Agent ID: Discord Daily Summary agent on tpmjs.com + # Requires API key with agent:chat scope RESPONSE=$(curl -s -X POST \ "https://tpmjs.com/api/agents/cmk9utpvg0001kz04csbisvf5/conversation/${{ steps.conv-id.outputs.conv_id }}" \ + -H "Authorization: Bearer $TPMJS_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "message": "Read the Discord server (guild ID 1349727923434815519) for the past 24 hours, excluding bots. Then post a detailed summary with an embed to channel 1442666515425132644. Include key discussions, announcements, and any action items."