Skip to content

Commit

Permalink
Merge pull request #80 from devops-infra/bugfix/mv
Browse files Browse the repository at this point in the history
Move safe.directory executions up
  • Loading branch information
ChristophShyper committed Apr 20, 2022
2 parents c414c70 + 1fc3fe8 commit c42126e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ if [[ -z "${INPUT_GITHUB_TOKEN}" ]]; then
fi

echo -e "\nSetting GitHub credentials..."
git remote set-url origin "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}"
git config --global --add safe.directory "${GITHUB_WORKSPACE}"
git config --global --add safe.directory /github/workspace
sudo git config --global --add safe.directory "${GITHUB_WORKSPACE}"
sudo git config --global --add safe.directory /github/workspace
git remote set-url origin "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}"
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
# Needed for hub binary
Expand Down

0 comments on commit c42126e

Please sign in to comment.