Skip to content

Commit 6d73096

Browse files
author
a.pirogov
committed
fix ci
1 parent ea16806 commit 6d73096

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/deploy_demo.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ jobs:
7373
- name: Get branch triggering the workflow
7474
run: |
7575
BRANCH="$(echo ${GITHUB_REF##*/})"
76+
if [[ $BRANCH == v*.*.* ]]; then
77+
BRANCH=main # tagged release -> main branch
78+
fi
7679
echo "ci branch:" $BRANCH
7780
echo "CI_BRANCH=$BRANCH" >> "$GITHUB_ENV"
7881
@@ -82,6 +85,7 @@ jobs:
8285
git remote add origin [email protected]:Materials-Data-Science-and-Informatics/fair-python-cookiecutter-demo.git
8386
8487
if [ "$CI_BRANCH" != "main" ]; then
88+
# rename branch to desired target
8589
git branch -m main $CI_BRANCH
8690
git status
8791
fi

0 commit comments

Comments
 (0)