Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Commit

Permalink
Updated order of config setting
Browse files Browse the repository at this point in the history
  • Loading branch information
faceleg committed Nov 20, 2023
1 parent 2581dc6 commit a6f4040
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ echo '👍 THE SITE IS BUILT—PUSHING IT BACK TO GITHUB-PAGES'
cd build
remote_repo="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" &&
remote_branch="gh-pages" &&
git init &&
git config --global init.defaultBranch main &&
git init &&
git config user.name "${GITHUB_ACTOR}" &&
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" &&
git add . &&
Expand All @@ -21,5 +21,4 @@ remote_repo="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITO
git push --force $remote_repo main:$remote_branch >/dev/null 2>&1 &&
rm -fr .git &&
cd ../
echo $remote_repo
echo '👍 GREAT SUCCESS!'

0 comments on commit a6f4040

Please sign in to comment.