changed to be uniform with main build pipeline design pattern

This commit is contained in:
Charles N Wyble 2024-12-10 12:17:26 -06:00
parent 7715928bae
commit d4899ee823
3 changed files with 7 additions and 5 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
dsrtemp/ dsr-build-temp/
dsr-build-output/

View File

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
TODAY_DATE=$(date +%m-%d-%Y) TODAY_DATE=$(date +%m-%d-%Y)
INPUT_FILE="../dsrtemp/@DailyStakeholderReports/Today/DSR-$TODAY_DATE.md" INPUT_FILE="../dsr-build-temp/@DailyStakeholderReports/Today/DSR-$TODAY_DATE.md"
OUTPUT_FILE="../dsrtemp/DSR-$TODAY_DATE.pdf" OUTPUT_FILE="../dsr-build-output/DSR-$TODAY_DATE.pdf"
METADATA_FILE="daily-stakeholder-report.yml" METADATA_FILE="daily-stakeholder-report.yml"
TEMPLATE="eisvogel" TEMPLATE="eisvogel"

View File

@ -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..." 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." 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) # 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 # Check if the file exists
if [ ! -f "$FILE_PATH" ]; then if [ ! -f "$FILE_PATH" ]; then