Complete reference for all available configuration options.
| Input | Description | Example |
|---|---|---|
user_email |
Git user email | actions@github.com |
user_name |
Git user name | GitHub Actions |
| Input | Description | Default |
|---|---|---|
commit_message |
Commit message | Auto commit by Go Git Commit Action |
branch |
Branch to push to | main |
repository_path |
Path to the repository | . |
file_pattern |
File pattern to add | . |
skip_if_empty |
Skip if no changes | false |
Notes:
file_patternsupports multiple space-separated patterns:"*.md *.txt"repository_pathis relative to the workspace root
| Input | Description | Default |
|---|---|---|
tag_name |
Tag name to create or delete | - |
tag_message |
Tag message (for annotated tags) | - |
delete_tag |
Whether to delete the tag | false |
tag_reference |
Git reference for the tag | - |
Notes:
- Tag operations only execute when
tag_nameis provided tag_referencecan be a commit SHA, tag name, or branch nametag_referencecannot be used withdelete_tag
| Input | Description | Default |
|---|---|---|
create_pr |
Whether to create a pull request | false |
auto_branch |
Whether to create automatic branch | false |
pr_title |
Pull request title | Auto PR by Go Git Commit Action |
pr_base |
Base branch for pull request | main |
pr_branch |
Branch to create pull request from | - |
delete_source_branch |
Delete source branch after PR | false |
github_token |
GitHub token for PR creation | - |
pr_labels |
Labels (comma-separated) | - |
pr_body |
Custom body message | - |
pr_closed |
Close PR after creation | false |
pr_dry_run |
Simulate PR creation | false |
Notes:
github_tokenis required whencreate_pris truepr_branchis required whencreate_pris true andauto_branchis falsepr_baseis required whencreate_pris true- When
auto_branchis true, creates branch with format:update-files-{timestamp} delete_source_branchonly works withauto_branch: true
commit_message: "Auto commit by Go Git Commit Action"
branch: "main"
repository_path: "."
file_pattern: "."
skip_if_empty: false
delete_tag: false
create_pr: false
auto_branch: false
pr_base: "main"
delete_source_branch: false
pr_closed: false
pr_dry_run: falseThe action validates inputs before execution:
pr_branchmust be set whenauto_branchis falsepr_basemust be set whencreate_pris truegithub_tokenmust be set whencreate_pris true
tag_referencecannot be used withdelete_tag
- Multiple patterns separated by spaces
- Standard git pattern matching supported