From 82b1c41c6ffaba48abcb10b822397c62f94a7645 Mon Sep 17 00:00:00 2001 From: Charles N Wyble Date: Sun, 15 Dec 2024 16:47:19 -0600 Subject: [PATCH] . --- build/publish-stakeholder-output-server.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build/publish-stakeholder-output-server.sh b/build/publish-stakeholder-output-server.sh index 66c1997..f219318 100644 --- a/build/publish-stakeholder-output-server.sh +++ b/build/publish-stakeholder-output-server.sh @@ -12,8 +12,8 @@ fi echo "Uploading file..." upload_response=$(curl -s -X POST "$DISCOURSE_URL/uploads.json" \ -H "Content-Type: multipart/form-data" \ - -H "Api-Key: $API_KEY" \ - -H "Api-Username: $API_USERNAME" \ + -H "Api-Key: $DISCOURSE_API_KEY" \ + -H "Api-Username: $DISCOURSE_API_USERNAME" \ -F "file=@$FILE_PATH;type=application/pdf" \ -F "type=composer") @@ -38,13 +38,13 @@ CONTENT="$CONTENT\n\n[Download todays report in PDF format]($short_url)" echo "Creating new topic..." post_response=$(curl -s -X POST "$DISCOURSE_URL/posts.json" \ -H "Content-Type: application/json" \ - -H "Api-Key: $API_KEY" \ - -H "Api-Username: $API_USERNAME" \ + -H "Api-Key: $DISCOURSE_API_KEY" \ + -H "Api-Username: $DISCOURSE_API_USERNAME" \ -d @- <