Skip to content
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

Deliver stable releases if newer than latest prerelease depending on settings #22

Closed
wants to merge 0 commits into from

Conversation

safinn
Copy link
Contributor

@safinn safinn commented Oct 16, 2017

#20 Maybe I have gone in the right direction to what you are expecting. I tried to explain my thinking below:

  1. Checks to see if PRE is true (this flag asks the question if pre-releases should be considered as well as stable releases).
  2. Finds the latest pre-release.
  3. Check to see if the ONLY_PRE environment variable is true (asks the question if only pre-releases should be cached). If true, this pre-releases is cached. END.
  4. If ONLY_PRE is false, the latest stable release is found.
  5. Both releases are checked to make sure they have assets.
  6. If only one of the releases meets the requirements (step 5), this release is chosen to be cached. END.
  7. If both releases meet the requirements, the latest (by published_at date) is cached. END.
  8. If no release meets the requirements, nothing is cached (the previous successful cache still gets delivered). END.

TODO

  • Edit readme.md to include changes
  • Clean comments

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.

None yet

1 participant