tu6ge / publish-action

Auto publish cargo when git push new cargo.toml version, and tagging it with this version
13 stars 4 forks source link

Github error: Invalid request. At least 40 characters are required; only 4 were supplied #12

Open PolpOnline opened 1 day ago

PolpOnline commented 1 day ago

Hi, I was setting up a build for a tool I made and it gives out this error when trying to cache the action result

Error: Github("{\"message\":\"Invalid request.\\n\\nAt least 40 characters are required; only 4 were supplied.\",\"documentation_url\":\"https://docs.github.com/rest/git/refs#create-a-reference\",\"status\":\"422\"}")

See the build logs for more info

tu6ge commented 1 day ago

You should to upgrade the last version.

PolpOnline commented 1 day ago

Now the error changed to just Error: GetTagFailed

https://github.com/PolpOnline/gpu-usage-waybar/actions/runs/11727952380/job/32670259336

tu6ge commented 18 hours ago

Maybe ,The role prevents access to branch's ref , document link is https://docs.github.com/en/rest/git/refs?apiVersion=2022-11-28