-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
Creates new branch even if it exits #142
Comments
Thanks for reporting @itachi1994 Quick question: Did this behaviour work for you previous to v4.9.0? (v4.9.0 has been released just 3 days ago) If I understand the issue correctly, you're currently:
Maybe adding If this is a more general bug that appeared in v4.9.0 I'm giving my best to fix this as soon as possible. |
@stefanzweifel Thank you for getting back to me. |
@itachi1994 You might also be able to add a - name: Copy file
run: ***does something*******
+ - run: git rebase origin/automatic-sync
- name: commit and push
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit: "Apply automatic changes"
branch: "automatic-sync"
file_pattern: ".editorconfig" In #143 I've added a failing test to prove that this is real bug. As this seems to be a rare edge case, I would like to just add a note in the README, that users are responsible to solve such issues in their workflows directly. I will keep this issue open though for a few days. To think about this more and give others the chance to report similar problems. |
Thanks for opening this issue, @itachi1994 |
Output @spr-saleem and I are seeing: 4.8.0 output:
4.9.0 output:
|
@betamike @spr-saleem Thanks for reporting. It seems #140 really break some stuff. :/ I've reverted the changes (#144) and released v4.9.1. This will at least not break the Action for others anymore. Will tackle the problem the original PR tried to solve therefore in another way. |
Thanks for the quick turnaround on this, @stefanzweifel. Much appreciated! Suggestion for the future: consider giving new point releases some time to stabilize before updating the main release tag reference. E.g. in this case, our dependency was originally simply on Users who want the most recent build can always set their dependency to the This style would be consistent with https://semver.org, as I understand it. Thanks, again, for authoring and sharing this API. |
This comment has been minimized.
This comment has been minimized.
I'm closing this issue now. The changes have been reverted a year ago in #144 and released in The original feature, pushing commits to a new branch, has been reimplemented and hidden behind a flag in #203. No release has been tagged yet. I will wait 1-2 weeks before tagging |
Version of the Action
v4.9.0
Describe the bug
Creates a new branch even if the remote with the same name exists.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Needs to check if the remote branch exists, compare the difference, and commit only if a change is found.
Used Workflow
The text was updated successfully, but these errors were encountered: