mirror of
https://github.com/anchore/syft.git
synced 2026-10-30 14:02:26 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user