Skip to content

Commit

Permalink
Merge pull request #753 from guzzijones/patch-1
Browse files Browse the repository at this point in the history
Do not lookup release from package cloud if fork in circle config.yml
  • Loading branch information
armab authored May 12, 2020
2 parents 36d17f7 + 8f6428c commit 3d28bee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ jobs:
name: Export package version
command: |
PKG_VERSION=$(node -e "console.log(require('./package.json').st2_version);")
PKG_RELEASE=$(packagecloud.sh next-revision xenial ${PKG_VERSION} st2web)
if [ -n "$PACKAGECLOUD_TOKEN" ]; then
PKG_RELEASE=$(packagecloud.sh next-revision xenial ${PKG_VERSION} st2web)
else
# is fork
PKG_RELEASE=1
fi
echo "export PKG_VERSION=${PKG_VERSION}" >> $BASH_ENV
echo "export PKG_RELEASE=${PKG_RELEASE}" >> $BASH_ENV
- run:
Expand Down

0 comments on commit 3d28bee

Please sign in to comment.