For v2 target branches python 2.7 and 3.5 images are skipped (#13118)

Previously we skipped building 2.7 and 3.5 for master branch but
now we have also v2-0-test, so it is better to skip the
versions when branch is != v1-10-test (this is the only
DEFAULT_BRANCH - even in v1-10-stable builds v1-10-test is used
as DEFAULT_BRANCH is v1-10-test.
This commit is contained in:
Jarek Potiuk 2020-12-17 00:02:17 +01:00 коммит произвёл GitHub
Родитель 2491a9360c
Коммит 0f01faa486
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -284,13 +284,12 @@ jobs:
scripts/ci/libraries/_initialization.sh | \
awk 'BEGIN{FS="="} {print $3}' | sed s'/["}]//g')
echo "DEFAULT_CONSTRAINTS_BRANCH=${DEFAULT_CONSTRAINTS_BRANCH}" >> $GITHUB_ENV
if [[ \
${DEFAULT_BRANCH} != "master" || \
( ${PYTHON_MAJOR_MINOR_VERSION} != "2.7" && ${PYTHON_MAJOR_MINOR_VERSION} != "3.5" ) \
if [[ ${DEFAULT_BRANCH} != "v1-10-test" && \
( ${PYTHON_MAJOR_MINOR_VERSION} == "2.7" || ${PYTHON_MAJOR_MINOR_VERSION} == "3.5" ) \
]]; then
echo "::set-output name=proceed::true"
else
echo "::set-output name=proceed::false"
else
echo "::set-output name=proceed::true"
fi
- name: Initiate GitHub Checks for Building image
uses: LouisBrunner/checks-action@9f02872da71b6f558c6a6f190f925dde5e4d8798 # v1.1.0