How to make a Github repo depend on a particular release from another repo?

214 Views Asked by At

I have two repos on Github: a database repo and an API repo. These repos must stay separate, however one should depend on the other:

The database repo contains .sql files (tables, test data, sprocs, ...), documentation files, build and release scripts. I use the release script to create an asset file attached to a particular versioned github release containing only the .sql files. The documentation files can grow quite big, so these are not included in the releases. They're instead displayed through the repo's Wiki.

The API repo has unit tests which depend on a database instance created with the .sql files in the database repo. The unit tests are run by Travis CI as well as developers (pytest).

Currently I keep the same .sql files in both repos. However, going forward I would like to avoid this "double bookkeeping". I'd like to keep the .sql files only in the database repo, and then let the API repo "depend" on the versioned releases from the database repo.

Is there a 'best-practice' solution to this kind of problem?

0

There are 0 best solutions below