Skip to content

Commit

Permalink
When building a release, if the GH release exists just leave it alone
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmackay committed Sep 8, 2016
1 parent e503eab commit 0e952f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/release.run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ ghr() {
}

if ghr info --tag $GITHUB_VERSION ; then
# release already exists
ghr edit --tag $GITHUB_VERSION --name $GITHUB_VERSION --pre-release
# release already exists, leave it alone
echo "Release already exists, leaving it alone"
else
# release has to be created
ghr release --tag $GITHUB_VERSION --name $GITHUB_VERSION --pre-release
ghr release --tag $GITHUB_VERSION --name $GITHUB_VERSION
fi

for f in $(find /release -type f); do
Expand Down

0 comments on commit 0e952f0

Please sign in to comment.