Skip to content

Commit e31c321

Browse files
committed
api_refs.yaml: base_branch as an input
1 parent fa0d44c commit e31c321

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/api_refs.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ jobs:
3030
# Strip leading 'v' to get a plain version number (e.g. 5.0.9)
3131
version="${{ inputs.version }}"
3232
version="${version#v}"
33-
base_branch="$(echo $version | sed 's/\(.*\..*\)\..*/\1/')"
33+
base_branch="${{ inputs.base_branch }}"
34+
if [ -z "$base_branch" ]; then
35+
base_branch="$(echo $version | sed 's/\(.*\..*\)\..*/\1/')"
36+
fi
3437
work_branch="api_refs_v${version}"
3538
3639
if [[ "${{ inputs.use_dev_version }}" == "true" ]]; then

0 commit comments

Comments
 (0)