|
|
@ -1,8 +1,9 @@
|
|
|
|
name: Update Components
|
|
|
|
name: Update Components
|
|
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
on:
|
|
|
|
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
schedule:
|
|
|
|
- cron: "*/10 * * * *"
|
|
|
|
- cron: "0 * * * *"
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
update-components:
|
|
|
|
update-components:
|
|
|
@ -22,7 +23,7 @@ jobs:
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "${RELEASE_VERSION}" != "${CURRENT_VERSION}" ]]; then
|
|
|
|
if [[ "${RELEASE_VERSION}" != "${CURRENT_VERSION}" ]]; then
|
|
|
|
# bump kustomize
|
|
|
|
# bump kustomize
|
|
|
|
sed -i "s/\($1\/.*?ref=\).*/\1${RELEASE_VERSION}/g" "manifests/bases/$1/kustomization.yaml"
|
|
|
|
sed -i "s/\($1\/archive\/v\).*\(.zip\/\/$1-\).*\(\/config.*\)/\1${RELEASE_VERSION}\2${RELEASE_VERSION}\3/g" "manifests/bases/$1/kustomization.yaml"
|
|
|
|
|
|
|
|
|
|
|
|
if [[ ! -z $(go list -m all | grep "github.com/fluxcd/$1/api" | awk '{print $2}') ]]; then
|
|
|
|
if [[ ! -z $(go list -m all | grep "github.com/fluxcd/$1/api" | awk '{print $2}') ]]; then
|
|
|
|
# bump go mod
|
|
|
|
# bump go mod
|
|
|
|