-
Notifications
You must be signed in to change notification settings - Fork 230
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
Pushing changes fail #79
Comments
Clue:
I had the same issue, but my case was a different clue, and so a different fix. 😝 |
Yo. Now I got your same error. Add
|
Not sure if force pushing is going to be safe, I'm wondering if doing a git pull before you push would do the job. |
Quick note in response to the force push suggestion: Don't force push unless you know what you are doing. Many, many people have shot themselves in the foot with Also, as another data point, I get the same error as the OP on And on an unrelated note, it's a really bad practice to recommend people to use |
It looks like you would get this error if you have no new commits to push. For example, let's say you have a workflow that triggers on a pull_request that does:
If there are no changes in the format code step, you'll get that error in the push step. So, question then. Should you commit with --allow-empty and just always create another commit or is it possible to fail gracefully if there is nothing to push? |
My action :
Error log :
Note: I did not commit in the remote branch after the commit that triggered the action
The text was updated successfully, but these errors were encountered: