Merge pull request #5521 from fluxcd/update-source-watcher

ci: Add source-watcher to the update workflow
pull/5509/merge
Stefan Prodan 22 hours ago committed by GitHub
commit b6e0e8fd63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -43,7 +43,12 @@ jobs:
local CTRL_VERSION=$(sed -n "s/.*$1\/releases\/download\/\(.*\)\/.*/\1/p;n" manifests/bases/$1/kustomization.yaml) 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 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")
local API_PKG="github.com/fluxcd/$1/api"
if [[ "$1" == "source-watcher" ]]; then
API_PKG="github.com/fluxcd/$1/api/v2"
fi
local MOD_VERSION=$(go list -m -f '{{ .Version }}' "$API_PKG")
local changed=false local changed=false
@ -58,7 +63,7 @@ jobs:
fi fi
if [[ "${MOD_VERSION}" != "${LATEST_VERSION}" ]]; then if [[ "${MOD_VERSION}" != "${LATEST_VERSION}" ]]; then
go mod edit -require="github.com/fluxcd/$1/api@${LATEST_VERSION}" go mod edit -require="$API_PKG@${LATEST_VERSION}"
make tidy make tidy
changed=true changed=true
fi fi
@ -77,6 +82,7 @@ jobs:
bump_version notification-controller bump_version notification-controller
bump_version image-reflector-controller bump_version image-reflector-controller
bump_version image-automation-controller bump_version image-automation-controller
bump_version source-watcher
# diff change # diff change
git diff git diff

Loading…
Cancel
Save