Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
a.pirogov committed Jul 25, 2023
1 parent ea16806 commit 6d73096
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy_demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 6d73096

Please sign in to comment.