Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

Commit

Permalink
ci(circle): Remove loop in bash release script
Browse files Browse the repository at this point in the history
Motivation: trying to fix circleci job failure (see #81)
  • Loading branch information
k911 committed Nov 30, 2019
1 parent 9557765 commit ed058cb
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .circleci/release-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,18 +116,15 @@ else
fi

# Push commit and tag
GH_TOKEN="${GH_TOKEN:?"Provide \"GH_TOKEN\" variable with GitHub Personal Access Token"}"
REVS="$RELEASE_TAG HEAD:master HEAD:develop"

git remote add authorized "https://${GH_COMMITER_NAME}:${GH_TOKEN}@github.com/${GH_REPOSITORY}.git"
for REV in $REVS; do
if [ "0" = "$DRY_RUN" ]; then
git push authorized "$REV"
else
echo "Pushing $REV.."
fi
done
git remote remove authorized

if [ "0" = "$DRY_RUN" ]; then
GH_TOKEN="${GH_TOKEN:?"Provide \"GH_TOKEN\" variable with GitHub Personal Access Token"}"
git remote add authorized "https://${GH_COMMITER_NAME}:${GH_TOKEN}@github.com/${GH_REPOSITORY}.git"
git push authorized "$RELEASE_TAG"
git push authorized HEAD:master
git push authorized HEAD:develop
git remote remove authorized
fi

# Make github release
GH_RELEASE_DRAFT="${GH_RELEASE_DRAFT:-false}"
Expand Down

0 comments on commit ed058cb

Please sign in to comment.