DSR-Pipeline-ReachableCEO/build/build-stakeholder-output-server.sh
Charles N Wyble 9aef277a10 Squashed 'vendor/git.knownelement.com/reachableceo/DSR-Pipeline-Server/' changes from 82b1c41..4cd6c38
4cd6c38 .

git-subtree-dir: vendor/git.knownelement.com/reachableceo/DSR-Pipeline-Server
git-subtree-split: 4cd6c38e9366380b48a4918282f8d8b1bab6b832
2024-12-15 17:12:25 -06:00

22 lines
646 B
Bash

#!/bin/bash
set -euo pipefail
# Expand variables into rendered YAML files. These will be used by pandoc to format the output artifacts
$MO_PATH $YamlInputTemplateFileStakeholderOutput > $BUILDYAML_STAKEHOLDER_OUTPUT
echo "Creating stakeholder report..."
export StakeholderOutputMarkdownInputFile="../../StakeholderJoplin/@DailyStakeholderReports/PostedToDiscourse/DSR-12-10-2024.md"
cd "$(dirname $StakeholderOutputMarkdownInputFile)"
pandoc \
"$StakeholderOutputMarkdownOutputFile" \
--template $PANDOC_TEMPLATE \
--metadata-file="$BUILDYAML_STAKEHOLDER_OUTPUT" \
--from markdown \
--to=pdf \
--output $StakeholderOutputPDFOutputFile
cd -