[21226] Add skip_base
input option to get_related_branch_from_repo
action
#118
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The
get_releated_branch_from_repo
action tries to find a branch with the same reference (name) in the given repo.If fails, tries to get a branch with the same base name, else the given fallback branch.
We have already experience some issues with this actions, because it is used by eProsima products supported branches in nightly CI (for instance, lets say Fast DDS Gen 2.5.x), and instead of using the fallback of other product (Fast DDS 2.14.x), it finds a base branch in the repo that was not desired to be used (Fast DDS 2.5.x in this case).
This PR allows skipping the base branch step, so if the ref branch is not found, it uses directly the given fallback branch.
Contributor Checklist
versions.md
andREADME.md
files (if applicable).Reviewer Checklist