-
Notifications
You must be signed in to change notification settings - Fork 79
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
how to avoid 404 Not Found [] #113
Comments
Typically the configuration is used with;
Then when you create a release in your repo this action will run against that release with the identification you gave it and it won't go to |
I am having this issue, even tho I have the same configuration:
Logs
Steps taken
A detail, I do have a PAT for my account. Not sure tho if is relevant |
Have you tried without workflow_dispatch?
The error is saying it can't find anything at https://api.github.com/repos/ehvs/openshift-cluster-health-check/releases/tags/main because there is nothing there. You have a release called 'h1' https://api.github.com/repos/ehvs/openshift-cluster-health-check/releases/tags/h1 |
Hi @SentriumJames I think I am missing on how Actions and workflows works. BTW, I have just removed the workflow_dispatch from the workflow file, but once doing it, I cannot trigger manually the workflow to run. Tried by creating a new commit in both code and in the REleases, but the workflow does not run anymore. Im sure Im missing something basic here, but im not familiar with this function. |
The action (go release action) will run once you create a new release tag in your repository. So this is what it's waiting for, so for example, if you create a release tag called 1.0, then the action will create it's binaries from the code in that release tag. There is no need to redirect it or give it the URL, it knows where to go based off the release tag. In my project it works just like this, but I use a slightly older version of the action (1.3.5 and you use 1.3.8) but I doubt this changes much. Have you tried to create a new release tag to see if it will build your binaries successfully? |
That completely made the trick :D Thank you! |
I don't know enough about workflow_dispatch but if it triggers the go release action but it causes it to look for a tag called "main" every time then this will cause the problem you had. But this is just speculation on my part. Glad it works now though 👍 |
After pushing the tag test/v1.0, I received the error: GET https://api.github.com/repos/huerni/gmitex/releases/tags/test/v1.0: 404 Not Found []. Why is this happening? |
See my comment above.
This is the trigger you need to use. Then when you make changes to your code, create a new release and the go action will run. |
If I want it to be created automatically when pushing a tag, do I add this sentence? |
Yep, replace on push with that. As I say, the example above I gave before should be all you need 🙂 |
thanks |
你好!
我尝试将 go 程序发布,以下为 watch.yml
前面的步骤运行正常,但最终得到如下结果:
无论是直接运行,还是打完个 v1.0.7 之类的 tag 再运行,都得到以上的 404 错误。
请问我这里需要设计什么吗?
谢谢!
The text was updated successfully, but these errors were encountered: