Squashed 'vendor/git.knownelement.com/reachableceo/ConsultantProfile-Pipeline-Server/' content from commit 6ee522c

git-subtree-dir: vendor/git.knownelement.com/reachableceo/ConsultantProfile-Pipeline-Server
git-subtree-split: 6ee522ce56710de681c50dbda374cc466b2fc3c4
This commit is contained in:
2024-12-17 13:48:27 -06:00
commit ff4aafdb98
3 changed files with 270 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
#!/usr/bin/env bash
set -euo pipefail
#####################################################################################################
#Markdown to PDF Consultant information sheet and profile
#####################################################################################################
#############################################
# Create the consultant information PDF
#############################################
# Expand variables into rendered YAML files. These will be used by pandoc to create the output artifacts
$MO_PATH $YamlInputTemplateFileConsultantInfoSheet > $BUILDYAML_CONSULTANT_INFOSHEET
echo "Creating candidate info sheet..."
$MO_PATH $PipelineClientWorkingDir/Templates/Consultant/CounsultantInfoSheet.md > "$ConsultantInfoSheetMarkdownOutputFile"
pandoc \
"$ConsultantInfoSheetMarkdownOutputFile" \
--template $PANDOC_TEMPLATE \
--metadata-file="$BUILDYAML_CONSULTANT_INFOSHEET" \
--from markdown \
--to=pdf \
--output $ConsultantInfoSheetPDFOutputFile
#############################################
# Create the consultant profile PDF
#############################################
# Coming later