From 5adbb8cb3ed4eec325296aab0e263df6fd1f35e9 Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Fri, 20 Sep 2019 20:34:57 +0200 Subject: [PATCH] Use GITHUB_ACTOR instead of args --- README.md | 6 ------ actions.yml | 6 ------ entrypoint.sh | 2 +- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/README.md b/README.md index 6924bf7..c0a26db 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,6 @@ Add the following step at the end of your job. ```yaml - uses: stefanzweifel/git-auto-commit-action@v2.0.0 with: - commit_author_email: john.doe@example.com - commit_author_name: John Doe commit_message: Apply automatic changes branch: ${{ github.head_ref }} env: @@ -30,8 +28,6 @@ The Action will only commit files back, if changes are available. The resulting The following inputs are required -- `commit_author_email`: The Commit Authors Email Address -- `commit_author_name`: The Commit Authors Name - `commit_message`: The commit message used when changes are available - `branch`: Branch name where changes should be pushed to @@ -65,8 +61,6 @@ jobs: - name: Commit changed files uses: stefanzweifel/git-auto-commit-action@v2.0.0 with: - commit_author_email: hello@stefanzweifel.io - commit_author_name: Stefan Zweifel commit_message: Apply php-cs-fixer changes branch: ${{ github.head_ref }} env: diff --git a/actions.yml b/actions.yml index 6fb8688..853234a 100644 --- a/actions.yml +++ b/actions.yml @@ -7,12 +7,6 @@ inputs: commit_message: description: Commit message required: true - commit_author_name: - description: Name of the commit author - required: true - commit_author_email: - description: Email address of the commit author - required: true branch: description: Branch where changes should be pushed too required: true diff --git a/entrypoint.sh b/entrypoint.sh index f074609..b5d6348 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -32,7 +32,7 @@ then git add . - git commit -m "$INPUT_COMMIT_MESSAGE" --author="$INPUT_COMMIT_AUTHOR_NAME <$INPUT_COMMIT_AUTHOR_EMAIL>" + git commit -m "$INPUT_COMMIT_MESSAGE" --author="$GITHUB_ACTOR <$GITHUB_ACTOR@users.noreply.github.com>" git push --set-upstream origin "HEAD:$INPUT_BRANCH" else