Use GITHUB_ACTOR instead of args

This commit is contained in:
Stefan Zweifel 2019-09-20 20:34:57 +02:00
parent 97f9868da0
commit 5adbb8cb3e
3 changed files with 1 additions and 13 deletions

View File

@ -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:

View File

@ -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

View File

@ -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