Skip to content

Commit

Permalink
config.yml
Browse files Browse the repository at this point in the history
if package cloud token is not set use hard coded value of 1
  • Loading branch information
guzzijones authored May 12, 2020
1 parent 36d17f7 commit 35525f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ 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
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 35525f5

Please sign in to comment.