-
Notifications
You must be signed in to change notification settings - Fork 33
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
[error]Not Found #20
Comments
I must use the base-ref parameter to solve this problem, but this problem is not pointed out in the example. I will try to go back to my repository, create a new repository in a similar situation and track this issue. |
I think this is related to #14 if you don't have a version tag to compare against it fails. Can you create a version tag and then try again? |
Or I think I've fixed this in v.0.4.3 can you try again with that release? You shouldn't need to set a base_ref by default. |
Hey, Thanks for your work, but the new version didn't work. I tried to find out where this error is. Through the continuous console output log, it should be that the following will throw an error directly instead of returning false or any determinable value. //index.js
//dist/index.js
if (!baseRef) {
const latestRelease = await octokit.repos.getLatestRelease({
owner: owner,
repo: repo
})
//here will throw an error directly instead of returning false or any determinable value.
if (latestRelease) {
baseRef = latestRelease.data.tag_name
} else {
core.setFailed(
`There are no releases on ${owner}/${repo}. Tags are not releases.`
)
}
} My test repository only has a label, but there is no release. You may need to use the initial commit to set |
Ah I think I understand. The action does assume that you are using releases to manage your workflow. It currently isn't setup to use branches or even tags. You can work around this by setting the base_ref manually. So in your action you can write some additional step to figure out what tag or branch you want to use. Otherwise if you want it to automatically figure it out the way its setup it has to be releases. I'm going to close this as I think its working as implemented. I only use releases with this action. If you want to take a try at making it more generalized I can review the PRs. Unfortunately, I don't have time to rework it to do something different. |
This error has nothing to do with whether repository has other branch or tag, only related to whether it has a release. So I should ensure that my repository have at least one release to make workflow work on, right? Does this need to be pointed out in the readme, because if it is a new repository, this action cannot be started without release, and it will cause a vague error similar to mine. Thank you for taking the time to solve this problem. If I can try to solve this problem later, I will try to submit a new PR. |
This should fix metcalfc#20.
I don't know why, some errors occurred during my use.
This is my configuration file:
According to my investigation,
${{ secrets.GITHUB_TOKEN }}
here does not need to be added, it is generated by default, so I have not done anything except add this file.If I did something wrong, please let me know, thank you for your work and look forward to your reply.
The text was updated successfully, but these errors were encountered: