mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-07 16:27:27 +00:00
Merge pull request #5507 from fluxcd/skip-rc-upd
Skip release candidates on updates
This commit is contained in:
commit
664423230d
1 changed files with 6 additions and 0 deletions
6
.github/workflows/update.yaml
vendored
6
.github/workflows/update.yaml
vendored
|
|
@ -35,6 +35,12 @@ jobs:
|
|||
|
||||
bump_version() {
|
||||
local LATEST_VERSION=$(curl -s -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/repos/fluxcd/$1/releases | jq -r 'sort_by(.published_at) | .[-1] | .tag_name')
|
||||
|
||||
if [[ "$LATEST_VERSION" == *"-rc"* ]]; then
|
||||
echo "Skipping release candidate version for $1: $LATEST_VERSION"
|
||||
return
|
||||
fi
|
||||
|
||||
local CTRL_VERSION=$(sed -n "s/.*$1\/releases\/download\/\(.*\)\/.*/\1/p;n" manifests/bases/$1/kustomization.yaml)
|
||||
local CRD_VERSION=$(sed -n "s/.*$1\/releases\/download\/\(.*\)\/.*/\1/p" manifests/crds/kustomization.yaml)
|
||||
local MOD_VERSION=$(go list -m -f '{{ .Version }}' "github.com/fluxcd/$1/api")
|
||||
|
|
|
|||
Loading…
Reference in a new issue