diff --git a/bitrise.yml b/bitrise.yml index 776cf8e1..2799910c 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -178,6 +178,10 @@ workflows: echo "This is a PR from a forked repo, will be creating temp branch with current hash:" git log --pretty=format:'%h%n' -n 1 git switch -C $BITRISE_GIT_BRANCH + elif [[ ! $BITRISE_GIT_TAG == *"-"* ]]; then + echo "This is a release step, just making sure we are at master" + git fetch --no-tags origin master + git switch master else echo "This is a PR from the repo, just making sure we are at the right branch" git fetch --no-tags origin $BITRISE_GIT_BRANCH