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

15 lines
307 B
Bash

#!/bin/bash
TODAY_DATE=$(date +%m-%d-%Y)
INPUT_FILE="./DSR-$TODAY_DATE.md"
OUTPUT_FILE="./DSR-$TODAY_DATE.pdf"
METADATA_FILE="daily-stakeholder-report.yml"
TEMPLATE="eisvogel"
pandoc \
$INPUT_FILE \
--template $TEMPLATE \
--metadata-file=$METADATA_FILE \
--from markdown \
--to=pdf \
--output $OUTPUT_FILE