1
0
mirror of synced 2026-02-06 19:05:55 +00:00

ci: update replace pattern to match release zip

This commit is contained in:
Hidde Beydals
2020-09-22 10:36:24 +02:00
parent ce64b1fc09
commit fecd777d30
2 changed files with 4 additions and 3 deletions

View File

@@ -1,8 +1,9 @@
name: Update Components
on:
workflow_dispatch:
schedule:
- cron: "*/10 * * * *"
- cron: "0 * * * *"
jobs:
update-components:
@@ -22,7 +23,7 @@ jobs:
if [[ "${RELEASE_VERSION}" != "${CURRENT_VERSION}" ]]; then
# 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
# bump go mod