Disable prerelease version update check (#140)

* disable prerelease version update check

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* use prerelease flag as source of truth for user notifications

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman
2020-08-11 09:54:04 -04:00
committed by GitHub
parent 691e26d3a3
commit 90bd68e44c
4 changed files with 4 additions and 14 deletions
+3 -1
View File
@@ -5,7 +5,9 @@ BIN="syft"
DISTDIR=$1
VERSION=$2
if [[ $VERSION == *-* ]] ; then
# the source of truth as to whether we want to notify users of an update is if the release just created is NOT
# flagged as a pre-release on github
if [[ "$(curl -SsL https://api.github.com/repos/anchore/${BIN}/releases/tags/${VERSION} | jq .prerelease)" == "true" ]] ; then
echo "skipping publishing a version file (this is a pre-release: ${VERSION})"
exit 0
fi