wiki/.actions/mkdocs-build/entrypoint.sh
Ludovic Cartier 3b94df0c6a
Some checks failed
mkdocs build / build (push) Failing after 4s
update action name
2024-08-29 17:00:18 +02:00

12 lines
168 B
Bash

#!/bin/bash
set -eux
cd "$3"
if test -d .git; then
git config --global --add safe.directory "$(realpath "$3")"
fi
mkdocs build --config-file "$1" --site-dir "$2"