Skip to content

Commit 6efb0a3

Browse files
committed
action: override TARGET_BRANCH for stable branches
1 parent f702b74 commit 6efb0a3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

action.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,23 @@ runs:
7373
if [[ "${{ inputs.conf_overrides }}" != "" ]]; then
7474
echo "${{ inputs.conf_overrides }}" >> local.conf
7575
fi
76+
77+
# Overriding target release for unmaintained versions
78+
# otherwide devstack will fail to clone some repos.
79+
TARGET_BRANCH=${{ inputs.branch }}
80+
if [[ "${{ inputs.branch }}" == *"victoria"* ]]; then
81+
TARGET_BRANCH="victoria-em"
82+
fi
83+
if [[ "${{ inputs.branch }}" == *"wallaby"* ]]; then
84+
TARGET_BRANCH="wallaby-em"
85+
fi
86+
if [[ "${{ inputs.branch }}" == *"xena"* ]]; then
87+
TARGET_BRANCH="xena-em"
88+
fi
89+
if [[ "${{ inputs.branch }}" == *"yoga"* ]]; then
90+
TARGET_BRANCH="yoga-eom"
91+
fi
92+
echo "TARGET_BRANCH=${TARGET_BRANCH}" >> local.conf
7693
working-directory: ./devstack
7794
shell: bash
7895
- name: Run devstack

0 commit comments

Comments
 (0)