metrumresearchgroup / bbr

R interface for model and project management
https://metrumresearchgroup.github.io/bbr/
Other
23 stars 2 forks source link

ci: install latest bbi automatically? #620

Open kyleam opened 10 months ago

kyleam commented 10 months ago

It'd be nice if we didn't have to update the drone config for each release (e.g., gh-619). We could update install_bbi.sh to query https://api.github.com/repos/metrumresearchgroup/bbi/releases/latest, though we'd need handling for if the rate limit is hit (especially if we aren't using an authenticated user).

seth127 commented 10 months ago

That makes sense to me. Could we still do this skip if we're querying latest instead of a version? I'm not sure what exactly that buys us, but I think it probably makes sense.

Also, I assume we'd still do the old frozen version for the "oldest" pipeline, as noted in gh-619?

kyleam commented 10 months ago

Could we still do this skip if we're querying latest instead of a version? I'm not sure what exactly that buys us, but I think it probably makes sense.

Yes, we could still run that once we got the latest version for via the api.github.com query.

(In terms of what it buys us, the comment following that makes me think it doesn't save us from many installs, but I'd need to look through the drone config and probably read up on some settings to have a better guess.)

Also, I assume we'd still do the old frozen version for the "oldest" pipeline, as noted in gh-619?

Right.

kyleam commented 3 months ago

We've moved to GitHub Actions, but this still applies. However, the core implementation would now be in the metrumresearchgroup/actions repo:

https://github.com/metrumresearchgroup/actions/blob/a286445062005feb83408d893816dff55592cdd6/setup-bbi/action.yaml#L5-L9

inputs:
  # TODO: At some point, it'd be nice if the default was to
  # automatically detect new versions (bbr 620).
  version:
    description: Version of bbi to install