When using GITHUB_TOKEN in Actions, the permissions on a repository are null and therefore we can't check whether the viewer has push access or not. The solution is to unconditionally check for draft releases instead of trying to be smart about it. Draft releases are going to be on top, so we don't have to paginate through all releases in a repository. |
||
|---|---|---|
| .. | ||
| create | ||
| delete | ||
| download | ||
| list | ||
| shared | ||
| upload | ||
| view | ||
| release.go | ||