Skip to content

Commit

Permalink
setup git safe.directory for the action
Browse files Browse the repository at this point in the history
  • Loading branch information
xu-cheng committed May 27, 2023
1 parent fe73b0e commit 7240b47
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ latexmk_shell_escape="${13}"
latexmk_use_lualatex="${14}"
latexmk_use_xelatex="${15}"

# install git on old images
if ! command -v git &> /dev/null
then
apk --no-cache add git
fi
git config --system --add safe.directory /github/workspace

if [[ -z "$root_file" ]]; then
error "Input 'root_file' is missing."
fi
Expand Down

0 comments on commit 7240b47

Please sign in to comment.