camcam1773/Add & Commit
Automatically commit changes made in your workflow run directly to your repo
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| add | Arguments for the git add command | no | . |
| author_name | The name of the user that will be displayed as the author of the commit | no | — |
| author_email | The email of the user that will be displayed as the author of the commit | no | — |
| commit | Additional arguments for the git commit command | no | — |
| committer_name | The name of the custom committer you want to use | no | — |
| committer_email | The email of the custom committer you want to use | no | — |
| cwd | The directory where your repository is located. You should use actions/checkout first to set it up | no | . |
| default_author | How the action should fill missing author name or email. | no | github_actor |
| fetch | Arguments for the git fetch command (if 'false', the action won't fetch the repo) | no | --tags --force |
| message | The message for the commit | no | — |
| new_branch | The name of the branch to create. | no | — |
| pathspec_error_handling | The way the action should handle pathspec errors from the add and remove commands. | no | ignore |
| pull | Arguments for the git pull command. By default, the action does not pull. | no | — |
| push | Whether to push the commit and, if any, its tags to the repo. It can also be used to set the git push arguments (more info in the README) | no | true |
| remove | Arguments for the git rm command | no | — |
| tag | Arguments for the git tag command (the tag name always needs to be the first word not preceded by a hyphen) | no | — |
| tag_push | Arguments for the git push --tags command (any additional argument will be added after --tags) | no | — |
| github_token | The token used to make requests to the GitHub API. It's NOT used to make commits and should not be changed. | no | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| committed | Whether the action has created a commit. |
| commit_long_sha | The complete SHA of the commit that has been created. |
| commit_sha | The short SHA of the commit that has been created. |
| pushed | Whether the action has pushed to the remote. |
| tagged | Whether the action has created a tag. |
| tag_pushed | Whether the action has pushed a tag. |