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

ci: Add source-watcher to the update workflow
This commit is contained in:
Stefan Prodan 2025-09-16 12:08:36 +03:00 committed by GitHub
commit b6e0e8fd63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,7 +43,12 @@ jobs:
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")
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
@ -58,7 +63,7 @@ jobs:
fi
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
changed=true
fi
@ -77,6 +82,7 @@ jobs:
bump_version notification-controller
bump_version image-reflector-controller
bump_version image-automation-controller
bump_version source-watcher
# diff change
git diff