Skip to content

Commit

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

Signed-off-by: Pascal Iske <info@pascaliske.dev>
  • Loading branch information
pascaliske authored and Andreas Blaesius committed Jan 17, 2024
1 parent 418b051 commit f73f101
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions action.sh
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 f73f101

Please sign in to comment.