Open mdcsaenz-ck opened 3 years ago
It seems that it still grabs the WHOLE body, not just the last X commits . when you do max_commits. Also it seems like babashka.curl: status 422 for line 119 in /var/src/release-on-push-action/src/release_on_push_action/core.clj:119:5
According to Github's API, 422 implies that there client errors in the schema of the payload. source.
The error seems to indicate that it could be an unexpected error in the JSON body to the /release
endpoint, specifically this snippet.
{
"tag_name" : "4.49.0",
"target_commitish" : "0ebdc5b5388f6af146e59b57e34115127745eb00",
"name" : "4.49.0",
"body" : "Version 4.49.0\n\n\n### Commits\n\n- [0ebdc5b5] Update build.yml\n",
"draft" : false,
"prerelease" : false
}
It appears that max_commits
is working as intended as there is only 1 bullet point in the body
.
I attempted to resubmit this payload on my own test repo and was able to create the tag. I'll try to add some more logging in the next release to help debug this scenario. In the mean time, could you try re-running the job to rule out that this is an intermittent error on github's side?
@mdcsaenz-ck The latest version v0.22.0 should have additional logging to show body of the Github API Response when creating a release fails.
@mdcsaenz-ck Is your last release marked as a prerelease? I accidentally flipped mine to prerelease and got the 422 error
Having this issue as well, @mdcsaenz-ck were you able to solve it?
This is still an issue in 0.28.0
I have the same issue "babashka.curl: status 422" in v0.27.0 with message "Use a file because the release data may be too large for an inline curl arg" :(
Any workaround to resolve the issue?
Got the same issue just from nowhere. Any ideas on how to mitigate that?
I encountered the same problem. After searching for some information, I found that the issue might be the permissions that actions have on the repository. You need to enable the read/write permissions. That's all.
Settings -> Actions -> General -> Workflow permissions -> Read and write permissions
Greetings, here is the code for the githubaction run I had and here:
Here is the error:
I also attempted with master and it broke. Any assistance will be helpful as its it hindering us from building :( Thank you.