-
-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using --amend as commit_options doesn't work when working directory is clean #82
Comments
A possible solution would be to add an optional parameter to be run on the _git_is_dirty function, an renaming the function probably to |
@goetzc What would you suggest would be an optional parameter which could be passed to Maybe we could add a |
The
I was thinking about the current check |
@goetzc I think I will create a branch with my change over the next 1-2 days so you can test things out. Will probably update the name of the option to make it more intuitive. |
Sound great @stefanzweifel! Looking forward to test it. Thanks |
This indeed helps, thank you very much @stefanzweifel! |
@goetzc Thanks for the feedback. I've tagged a new release: https://github.com/stefanzweifel/git-auto-commit-action/releases/tag/v4.4.0 You can update your workflow to use the exact version number: uses: stefanzweifel/git-auto-commit-action@v4.4.0 or you can choose to always use the latest release in v4: uses: stefanzweifel/git-auto-commit-action@v4 |
Hello, thanks for this Action. I'm experiencing some kind of unexpected behavior when using the
--amend
Git option, which I'm describing below.Version of the Action
v4.3.0
Describe the bug
When using the
--amend
Git commit option on thecommit_options
field, the Action doesn't work if the working directory is clean, showing the message "Working tree clean. Nothing to commit.".To Reproduce
Steps to reproduce the behavior:
--amend
option on thecommit_options
field.Expected behavior
The commit should be amended and pushed.
Used Workflow
Additional context
My purpose is to perform some Git operations generating a new commit, and finally using this action and the
--amend
option to modify the commit and push it.The text was updated successfully, but these errors were encountered: