mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2024-11-06 02:08:05 +00:00
Use GITHUB_ACTOR instead of args
This commit is contained in:
parent
97f9868da0
commit
5adbb8cb3e
@ -15,8 +15,6 @@ Add the following step at the end of your job.
|
|||||||
```yaml
|
```yaml
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v2.0.0
|
- uses: stefanzweifel/git-auto-commit-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
commit_author_email: john.doe@example.com
|
|
||||||
commit_author_name: John Doe
|
|
||||||
commit_message: Apply automatic changes
|
commit_message: Apply automatic changes
|
||||||
branch: ${{ github.head_ref }}
|
branch: ${{ github.head_ref }}
|
||||||
env:
|
env:
|
||||||
@ -30,8 +28,6 @@ The Action will only commit files back, if changes are available. The resulting
|
|||||||
|
|
||||||
The following inputs are required
|
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
|
- `commit_message`: The commit message used when changes are available
|
||||||
- `branch`: Branch name where changes should be pushed to
|
- `branch`: Branch name where changes should be pushed to
|
||||||
|
|
||||||
@ -65,8 +61,6 @@ jobs:
|
|||||||
- name: Commit changed files
|
- name: Commit changed files
|
||||||
uses: stefanzweifel/git-auto-commit-action@v2.0.0
|
uses: stefanzweifel/git-auto-commit-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
commit_author_email: hello@stefanzweifel.io
|
|
||||||
commit_author_name: Stefan Zweifel
|
|
||||||
commit_message: Apply php-cs-fixer changes
|
commit_message: Apply php-cs-fixer changes
|
||||||
branch: ${{ github.head_ref }}
|
branch: ${{ github.head_ref }}
|
||||||
env:
|
env:
|
||||||
|
@ -7,12 +7,6 @@ inputs:
|
|||||||
commit_message:
|
commit_message:
|
||||||
description: Commit message
|
description: Commit message
|
||||||
required: true
|
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:
|
branch:
|
||||||
description: Branch where changes should be pushed too
|
description: Branch where changes should be pushed too
|
||||||
required: true
|
required: true
|
||||||
|
@ -32,7 +32,7 @@ then
|
|||||||
|
|
||||||
git add .
|
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"
|
git push --set-upstream origin "HEAD:$INPUT_BRANCH"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user