diff --git a/README.md b/README.md index 7124952..a8deabb 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ Then make the token available to the Github Action following the steps: source-directory: 'output' destination-github-username: 'cpina' destination-repository-name: 'pandoc-test-output' - git-user-email: carles@pina.cat + user-email: carles3@pina.cat ``` Working example: diff --git a/action.yml b/action.yml index 5bb2901..5f639b8 100644 --- a/action.yml +++ b/action.yml @@ -20,7 +20,7 @@ runs: - ${{ inputs.source-directory }} - ${{ inputs.destination-github-username }} - ${{ inputs.destination-repository-name }} - - ${{ inputs.git-user-email }} + - ${{ inputs.user-email }} branding: icon: 'git-commit' color: 'green' diff --git a/entrypoint.sh b/entrypoint.sh index c052d44..3bd1f79 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,12 +4,12 @@ echo "Starts" FOLDER="$1" GITHUB_USERNAME="$2" GITHUB_REPO="$3" -GIT_USER_EMAIL="$4" +USER_EMAIL="$4" CLONE_DIR=$(mktemp -d) # Setup git -git config --global user.email "$GIT_USER_EMAIL" +git config --global user.email "$USER_EMAIL" git config --global user.name "$GITHUB_USERNAME" git clone "https://$API_TOKEN_GITHUB@github.com/$GITHUB_USERNAME/$GITHUB_REPO.git" "$CLONE_DIR"