-
-
Notifications
You must be signed in to change notification settings - Fork 425
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
GitHub release failed with status: 404, retrying... #110
Comments
It happens with This should be high priority fix. Infinite loops are very detrimental in general and especially in this case, because the GitHub API calls limit is reached almost in an instant. The problem is here on line 232. This I would love to contribute that, but I don't feel at all competent enough to contribute a well written solution. |
But why the |
Have you tried to create a release through the GitHub UI or CLI ? |
Eventually, I created the release via GitHub UI |
Same with the According to the previous several issues, this action seems to have been left unmaintained, so I think I will be switching to CLI commands in the pipeline. |
Can you please share the code of how to use the CLI directly in the pipeline? (Even though this repo is unmaintained, I will create a PR that will limit the retries) |
Depends on what you need specifically of course, but it should look something like this:
The sample code is from this thread When I make it specifically for the pipeline I am working on, I will share a link to it. |
@aleks-ivanov Thank you! |
You are welcome 🙂 On the GitHub Actions runners it should be pre-installed and setup on all variants. Like this, on the Ubuntu 20.04 runner for example, that I will be using. |
A 404 can happen for different reasons. In a future release Im going to include more debugging information from api response headers the logs. The the mean time the next release will include a change that limits the number of api retries are made |
Which permissions are required for this action? If the repo is configures the GITHUB_TOKEN to be restrictive, you need to elevate the required permissions in the workflow. |
Having this issue right now. Any suggestions? |
Same problem for me |
I've got same error when I use Personal Access Token to release on other repo.
in my case, I need to add "Content write" permission to that token, for both repositories.
I guess this Actions create release on both home and foreign repo even if we set |
Just for the record: I was having the exact same issue with a custom token without referencing another issue. The custom token was used to have a specific user listed as the creator of the release. The workflow step looks like this:
In my case, the issue was caused that the personal access token used in the secret was in fact a PAT of the correct user, but did not have the right scopes assigned. |
In addition to having the correct permissions, don't forget to add the custom token in the secrets in the target repository |
For those facing this issue: the "create release" API returns 404 if the discussion category name is invalid. If you are using the flag to create a discussion for the release and are getting this error, make sure:
|
Got the error:
GitHub release failed with status: 404, retrying...
https://github.com/rhalaly/scope-to-this-vscode/runs/2869520835?check_suite_focus=true
Running in an infinite loop. Any idea what is the reason? And how to prevent an infinite loop in the release pipeline?
The text was updated successfully, but these errors were encountered: