You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: allow overriding commit identity user_name and user_email (#221)
* feat: allow overriding commit identity user_name and user_email
Add optional user_name and user_email inputs so workflows can control git commit identity while preserving the current actor-based defaults. Update local tests and README examples to cover the new override behavior.
---------
Co-authored-by: ChristophShyper <45788587+ChristophShyper@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,8 @@ This action supports three tag levels for flexible versioning:
60
60
amend: false
61
61
commit_prefix: "[AUTO]"
62
62
commit_message: "Automatic commit"
63
+
user_name: ""
64
+
user_email: ""
63
65
signing_mode: ""
64
66
signing_key: ""
65
67
signing_passphrase: ""
@@ -79,6 +81,8 @@ This action supports three tag levels for flexible versioning:
79
81
| `amend` | No | `false` | Whether to make an amendment to the previous commit (`--amend`). Can be combined with `commit_message` to change the commit message. |
80
82
| `commit_prefix` | No | `""` | Prefix added to commit message. Combines with `commit_message`. |
81
83
| `commit_message` | No | `""` | Commit message to set. Combines with `commit_prefix`. Can be used with `amend` to change the commit message. |
84
+
| `user_name` | No | `""` | Git `user.name` used for created commits. Defaults to `${{ github.actor }}` when empty. |
85
+
| `user_email` | No | `""` | Git `user.email` used for created commits. Defaults to `${{ github.actor }}@users.noreply.<organization_domain>` when empty. |
82
86
| `signing_mode` | No | `""` | Commit signing mode. Supported values are `gpg` and `ssh`. Leave empty to disable signing. |
83
87
| `signing_key` | No | `""` | Signing key material. For `gpg`, provide an ASCII-armored private key export. For `ssh`, provide a private key in OpenSSH or PEM format. |
84
88
| `signing_passphrase` | No | `""` | Optional passphrase for the signing key. Passphrase-protected GPG keys are supported. Encrypted SSH signing keys are rejected in the current runtime. |
@@ -222,6 +226,24 @@ jobs:
222
226
commit_message: "Update README"
223
227
```
224
228
229
+
### 👤 Custom commit identity example
230
+
Override the git author/committer identity used by the action.
0 commit comments