Skip to content

Commit 638d24f

Browse files
committed
= Fix #28
- Command `git config --local` was causing issues The GitHub Action account email was set as global git configuration inside the container. That configuration indicates the GitHub Action bot as the author of the commits in the gh-pages branch.
1 parent 0f403e0 commit 638d24f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

entrypoint.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ echo "Configure git"
1313
apk add git -q > /dev/null
1414
apk add openssh-client -q > /dev/null
1515

16-
# Changes in gh-pages branch will be shown as the "GitHub Action" user.
17-
git config --local user.email "[email protected]"
18-
git config --local user.name "GitHub Action"
16+
git config --global --add safe.directory /github/workspace
1917

2018
# Gets latest commit hash for pushed branch
2119
COMMIT_HASH=$(git rev-parse HEAD)
@@ -92,6 +90,10 @@ if [[ $INPUT_SLIDES_BUILD == true ]]; then
9290
git add -f "$SLIDES_FILE";
9391
fi
9492

93+
# Changes in gh-pages branch will be shown as the "GitHub Action" user.
94+
git config --global user.email "[email protected]"
95+
git config --global user.name "GitHub Action"
96+
9597
MSG="Build $INPUT_ADOC_FILE_EXT Files for GitHub Pages from $COMMIT_HASH"
9698
git rm -rf .github/ || true
9799
echo "Committing changes to gh-pages branch"

0 commit comments

Comments
 (0)