Skip to content

Commit

Permalink
action: override TARGET_BRANCH for stable branches
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilienM committed Feb 8, 2024
1 parent f702b74 commit 6efb0a3
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_BRANCH=${{ inputs.branch }}
if [[ "${{ inputs.branch }}" == *"victoria"* ]]; then
TARGET_BRANCH="victoria-em"
fi
if [[ "${{ inputs.branch }}" == *"wallaby"* ]]; then
TARGET_BRANCH="wallaby-em"
fi
if [[ "${{ inputs.branch }}" == *"xena"* ]]; then
TARGET_BRANCH="xena-em"
fi
if [[ "${{ inputs.branch }}" == *"yoga"* ]]; then
TARGET_BRANCH="yoga-eom"
fi
echo "TARGET_BRANCH=${TARGET_BRANCH}" >> local.conf
working-directory: ./devstack
shell: bash
- name: Run devstack
Expand Down

0 comments on commit 6efb0a3

Please sign in to comment.