Ret artifact url in has_release_artifact

So that we can use it to download from private repositories.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2024-05-06 23:00:02 +10:00
parent d2914cca42
commit 0708f6f348
No known key found for this signature in database
GPG key ID: 76D1E687CA3C4928
4 changed files with 22 additions and 16 deletions

View file

@ -29,7 +29,7 @@ pub async fn does_url_exist(
// The future returned has the same size as a pointer
match gh_api_client.has_release_artifact(artifact).await? {
HasReleaseArtifact::Yes => return Ok(true),
HasReleaseArtifact::Yes { .. } => return Ok(true),
HasReleaseArtifact::No | HasReleaseArtifact::NoSuchRelease => return Ok(false),
HasReleaseArtifact::RateLimit { retry_after } => {