From d4899ee823cf02aa29fec11e7b81be458d2e1a8b Mon Sep 17 00:00:00 2001 From: ReachableCEO Date: Tue, 10 Dec 2024 12:17:26 -0600 Subject: [PATCH] changed to be uniform with main build pipeline design pattern --- .gitignore | 3 ++- dsr-publish/create-dsr-pdf.sh | 4 ++-- dsr-publish/publish-dsr.sh | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 120732a..bd9cfe8 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -dsrtemp/ \ No newline at end of file +dsr-build-temp/ +dsr-build-output/ \ No newline at end of file diff --git a/dsr-publish/create-dsr-pdf.sh b/dsr-publish/create-dsr-pdf.sh index 4750e44..c30a6c4 100644 --- a/dsr-publish/create-dsr-pdf.sh +++ b/dsr-publish/create-dsr-pdf.sh @@ -1,8 +1,8 @@ #!/bin/bash TODAY_DATE=$(date +%m-%d-%Y) -INPUT_FILE="../dsrtemp/@DailyStakeholderReports/Today/DSR-$TODAY_DATE.md" -OUTPUT_FILE="../dsrtemp/DSR-$TODAY_DATE.pdf" +INPUT_FILE="../dsr-build-temp/@DailyStakeholderReports/Today/DSR-$TODAY_DATE.md" +OUTPUT_FILE="../dsr-build-output/DSR-$TODAY_DATE.pdf" METADATA_FILE="daily-stakeholder-report.yml" TEMPLATE="eisvogel" diff --git a/dsr-publish/publish-dsr.sh b/dsr-publish/publish-dsr.sh index 898a4cb..6c8d013 100644 --- a/dsr-publish/publish-dsr.sh +++ b/dsr-publish/publish-dsr.sh @@ -40,7 +40,8 @@ post_dsr() { -TODAY_DATE=$(date +%m-%d-%Y) +#TODAY_DATE=$(date +%m-%d-%Y) +TODAY_DATE="12-09-2024" echo "Posting DSR..." @@ -58,7 +59,7 @@ TITLE="Daily Stakeholder Report - $TODAY_DATE" CONTENT="Please use the link below to download today's stakeholder report." # The file to upload (from the second argument or auto-generated based on date) -FILE_PATH="../dsrtemp/DSR-$TODAY_DATE.pdf" +FILE_PATH="../dsr-build-output/DSR-$TODAY_DATE.pdf" # Check if the file exists if [ ! -f "$FILE_PATH" ]; then