Skip to content

Commit c41f86d

Browse files
committed
Move things around to allow overrides
1 parent 2d53cce commit c41f86d

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

action.yaml

+11-8
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ runs:
6262
INSTALL_TEMPEST=False
6363
GIT_BASE=https://github.com
6464
EOF
65+
66+
# Overriding target release for unmaintained versions
67+
# otherwide devstack will fail to clone some repos.
68+
TARGET_BRANCH=${{ inputs.branch }}
69+
if [[ "${{ inputs.branch }}" == *"yoga"* ]]; then
70+
TARGET_BRANCH="yoga-eom"
71+
fi
72+
echo "TARGET_BRANCH=${TARGET_BRANCH}" >> local.conf
73+
6574
# horizon does not work in github action, permission error
6675
# dstat log takes too much memory to be stored by log artifacts
6776
# tempest must be disabled otherwise it will get installed still
@@ -70,17 +79,11 @@ runs:
7079
ENABLED_SERVICES+=",${{ inputs.enabled_services }}"
7180
fi
7281
echo "ENABLED_SERVICES+=${ENABLED_SERVICES}" >> local.conf
82+
83+
# This must stay at the end to allow any overrides
7384
if [[ "${{ inputs.conf_overrides }}" != "" ]]; then
7485
echo "${{ inputs.conf_overrides }}" >> local.conf
7586
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 }}" == *"yoga"* ]]; then
81-
TARGET_BRANCH="yoga-eom"
82-
fi
83-
echo "TARGET_BRANCH=${TARGET_BRANCH}" >> local.conf
8487
working-directory: ./devstack
8588
shell: bash
8689
- name: Run devstack

0 commit comments

Comments
 (0)