Skip to content

Commit

Permalink
Set PKG_RELEASE=1 number for forked PRs
Browse files Browse the repository at this point in the history
Avoid failing the build, because PACKAGECLOUD_TOKEN is not available
Partially solves StackStorm#47
  • Loading branch information
armab committed Jul 7, 2016
1 parent aa1b5f1 commit ebac283
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ checkout:
distros=($DISTROS)
DISTRO=${distros[$CIRCLE_NODE_INDEX]}
PKG_VERSION=$(node -e "console.log(require('./package.json').st2_version);")
PKG_RELEASE=$(~/st2-packages/.circle/packagecloud.sh next-revision ${DISTRO} ${PKG_VERSION} st2chatops)
if [ -n "$PACKAGECLOUD_TOKEN" ]; then
PKG_RELEASE=$(~/st2-packages/.circle/packagecloud.sh next-revision ${DISTRO} ${PKG_VERSION} st2chatops)
else
PKG_RELEASE=1
fi
echo "export PKG_VERSION=${PKG_VERSION}" >> ~/.circlerc
echo "export PKG_RELEASE=${PKG_RELEASE}" >> ~/.circlerc
echo "export DISTRO=${DISTRO}" >> ~/.circlerc
Expand Down

0 comments on commit ebac283

Please sign in to comment.