Skip to content

Commit

Permalink
fix: set workspace as safe directory (#183)
Browse files Browse the repository at this point in the history
More information here: actions/checkout#766

Signed-off-by: Pascal Iske <[email protected]>
  • Loading branch information
pascaliske committed Jun 27, 2022
1 parent 36dca94 commit b1bb7cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ else
exec -- mkdocs build --strict
fi

# workaround, see https://github.com/actions/checkout/issues/766
git config --global --add safe.directory "$GITHUB_WORKSPACE"

if ! git config --get user.name; then
git config --global user.name "${GITHUB_ACTOR}"
fi
Expand Down

0 comments on commit b1bb7cb

Please sign in to comment.