Closed Bzomak closed 4 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.
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
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.