Skip to content

Commit

Permalink
Add GH action tweak.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga authored Apr 29, 2024
1 parent 4547290 commit ca0853f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ action() {
return "1"
fi

# when in a github action runner, declare the mounted repo safe
if [ ! -z "%{GITHUB_ACTIONS}" ]; then
docker_cmd="git config --global --add safe.directory /documentation; ${docker_cmd}"
fi

# start the container
local cmd="docker run ${docker_args} cmsml/documentation ${docker_cmd}"
echo -e "command: ${cmd}\n"
Expand Down

0 comments on commit ca0853f

Please sign in to comment.