mirror of
https://github.com/anchore/syft.git
synced 2026-02-12 02:26:42 +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:
parent
691e26d3a3
commit
90bd68e44c
4
.github/scripts/update-version-file.sh
vendored
4
.github/scripts/update-version-file.sh
vendored
@ -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
|
||||
|
||||
6
.github/workflows/acceptance-test.yaml
vendored
6
.github/workflows/acceptance-test.yaml
vendored
@ -17,12 +17,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
# TODO: remove me after release
|
||||
- name: Configure git for private modules
|
||||
env:
|
||||
TOKEN: ${{ secrets.ANCHORE_GIT_READ_TOKEN }}
|
||||
run: git config --global url."https://anchore:${TOKEN}@github.com".insteadOf "https://github.com"
|
||||
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
|
||||
6
.github/workflows/release.yaml
vendored
6
.github/workflows/release.yaml
vendored
@ -75,12 +75,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
# TODO: remove me after release
|
||||
- name: Configure git for private modules
|
||||
env:
|
||||
TOKEN: ${{ secrets.ANCHORE_GIT_READ_TOKEN }}
|
||||
run: git config --global url."https://anchore:${TOKEN}@github.com".insteadOf "https://github.com"
|
||||
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user