mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 00:37:27 +00:00
ci: Add source-watcher to the update workflow
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
9caea521ea
commit
9056ec029c
1 changed files with 8 additions and 2 deletions
10
.github/workflows/update.yaml
vendored
10
.github/workflows/update.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue