Skip to content

Commit

Permalink
action: override TARGET_RELEASE for stable branches
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilienM committed Feb 8, 2024
1 parent 7649430 commit 5c82020
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,23 @@ runs:
if [[ "${{ inputs.conf_overrides }}" != "" ]]; then
echo "${{ inputs.conf_overrides }}" >> local.conf
fi
# Overriding target release for unmaintained versions
# otherwide devstack will fail to clone some repos.
TARGET_RELEASE=${{ inputs.branch }}
if [[ "${{ inputs.branch }}" == *"victoria"* ]]; then
TARGET_RELEASE="victoria-em"
fi
if [[ "${{ inputs.branch }}" == *"wallaby"* ]]; then
TARGET_RELEASE="wallaby-em"
fi
if [[ "${{ inputs.branch }}" == *"xena"* ]]; then
TARGET_RELEASE="xena-em"
fi
if [[ "${{ inputs.branch }}" == *"yoga"* ]]; then
TARGET_RELEASE="yoga-eom"
fi
echo "TARGET_RELEASE=${TARGET_RELEASE}" >> local.conf
working-directory: ./devstack
shell: bash
- name: Run devstack
Expand Down

0 comments on commit 5c82020

Please sign in to comment.