Bzomak / oolite-msys2

Builds oolite from scratch
0 stars 0 forks source link

Add input to build on alternative branch of Oolite #56

Closed Bzomak closed 4 months ago

Bzomak commented 5 months ago

An additional workflow input could allow to build other git branches of Oolite, such as testing Oolite's Pull Requests.

This is only useful if the workflow is not being used from the Oolite repository.

Bzomak commented 5 months ago

This would need ideally need to be checked at the start of the workflow. There isn't much point building all the dependencies and then finding out that the branch chosen doesn't exist.

If there is no way to check the branch name then it becomes an impractical feature.

Bzomak commented 5 months ago

See https://stackoverflow.com/questions/8223906/how-to-check-if-remote-branch-exists-on-a-given-remote-repository for how to use git ls-remote to check if the branch exists

See https://git-scm.com/docs/git-ls-remote.html for info on git ls-remote