Skip to content

lookup-create-app-version.js: add retry loop for fetching manifest #2

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

Merged
merged 1 commit into from
Feb 15, 2022

Conversation

Rugvip
Copy link
Member

@Rugvip Rugvip commented Feb 15, 2022

Manifest may not be available immediately, even though we delay the workflow dispatch until after the manifest repo has been updated. Probably due to delay in the publishing of GitHub pages.

This adds a retry loop that keeps trying to fetch the manifest for a minute before giving up. Seemed simpler to do this rather than setting up credentials and fetching via the API.

manifest = await fetchManifest(inputVersion);
break;
} catch (error) {
console.error(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe just warn or even info, and saying "retrying" or whatnot? if this is kinda common

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cba xP

@Rugvip Rugvip merged commit c7dc25a into master Feb 15, 2022
@Rugvip Rugvip deleted the rugvip/retry branch February 15, 2022 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants