-
Notifications
You must be signed in to change notification settings - Fork 640
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
Failed to commit to repo #21
Comments
I was able to resolve this by making the workflow pull before making a commit: The resulting action run seems to pass: |
Hi, thanks for reporting this! This issue is rather odd. Is it possible that you committed to the repo (or pushed a commit) while the action was running? That is the only thing I can think of that would cause this problem. If not, I will do my best to replicate the issue, and we can go from there. |
Perhaps, I don't know. But I've tried re-running the action several times without pushing, would that inital bad push become a persistent problem for any and all runs on future commits? |
Short answer: it shouldn't cause any long-term problems with the Action. Long answer: at a high level, here is how the Actions workflow works:
If you pushed code after step 1 but before step 3, then when it goes to do step 3, it sees that there is updated code it doesn't have. When this happens, it requires human intervention for a manual The reason it's not a long-term problem is because when it fails, it deletes the generated files from step 2 without saving them (because step 3 didn't complete). And then when it runs again, step 1 pulls down the code all fresh and new, without any conflicts. For now, I'm assuming that is what happened. If the Action can be triggered manually just fine and runs normally at its scheduled times, then I'd say you have nothing to worry about. Was this a one-off occurrence, or something that happened every time you ran the workflow? |
This is how I assumed it worked, no idea why this is happening 🤔 I've run the linked failed run again and it still fails: |
That is...unexpected, and definitely perplexing. Thanks for confirming that it's still a problem. Though I am glad to know adding |
@yooksi Hi, hope all is well! I've tried a bunch to replicate this, but can't seem to cause the same problem. Have there been any developments on your end? |
I've setup this project again in a new repository and tried to replicate the problem without success. |
Will do. Thanks for the reply! |
Workflow action fails after making a commit.
Link to failed action log:
https://github.com/yooksi/github-stats/runs/1885488408?check_suite_focus=true#step:7:1
The text was updated successfully, but these errors were encountered: