wiki/mkdocs-build-action/entrypoint.sh
Ludovic Cartier f264905572
All checks were successful
mkdocs build / build (push) Successful in 39s
test with local action
2024-08-29 12:03:10 +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"