From 6d73096f83ecb079e2924688290726ff355b1858 Mon Sep 17 00:00:00 2001 From: "a.pirogov" Date: Tue, 25 Jul 2023 12:00:52 +0200 Subject: [PATCH] fix ci --- .github/workflows/deploy_demo.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/deploy_demo.yml b/.github/workflows/deploy_demo.yml index 264ca6b..35b8066 100644 --- a/.github/workflows/deploy_demo.yml +++ b/.github/workflows/deploy_demo.yml @@ -73,6 +73,9 @@ jobs: - name: Get branch triggering the workflow run: | BRANCH="$(echo ${GITHUB_REF##*/})" + if [[ $BRANCH == v*.*.* ]]; then + BRANCH=main # tagged release -> main branch + fi echo "ci branch:" $BRANCH echo "CI_BRANCH=$BRANCH" >> "$GITHUB_ENV" @@ -82,6 +85,7 @@ jobs: git remote add origin git@github.com:Materials-Data-Science-and-Informatics/fair-python-cookiecutter-demo.git if [ "$CI_BRANCH" != "main" ]; then + # rename branch to desired target git branch -m main $CI_BRANCH git status fi