DSR-Pipeline-Server/dsr-publish/create-dsr-pdf.sh

18 lines
553 B
Bash
Raw Normal View History

#!/bin/bash
2024-12-12 17:36:39 +00:00
TODAY_DATE=$(date +%m-%d-%Y)
2024-12-12 00:22:25 +00:00
INPUT_FILE="DSR-$TODAY_DATE.md"
OUTPUT_FILE="/d/tsys/@ReachableCEO/DailyStakeholderReport-Pipeline/dsr-build-output/DSR-$TODAY_DATE.pdf"
METADATA_FILE="/d/tsys/@ReachableCEO/DailyStakeholderReport-Pipeline/dsr-publish/daily-stakeholder-report.yml"
TEMPLATE="eisvogel"
2024-12-12 17:36:39 +00:00
cd /d/tsys/@ReachableCEO/DailyStakeholderReport-Pipeline/dsr-build-temp/@DailyStakeholderReports/Today || exit
2024-12-12 00:22:25 +00:00
pandoc \
$INPUT_FILE \
--template $TEMPLATE \
--metadata-file=$METADATA_FILE \
--from markdown \
--to=pdf \
2024-12-06 02:20:27 +00:00
--output $OUTPUT_FILE