1
0
mirror of synced 2026-02-13 21:16:57 +00:00

Remove documentation version hotfix

And re-use the same logic to properly compare current and next release
versions in update workflow.
This commit is contained in:
Hidde Beydals
2020-10-16 21:54:24 +02:00
parent 07015c5172
commit 7515080c63
2 changed files with 6 additions and 10 deletions

View File

@@ -19,7 +19,7 @@ jobs:
bump_version() {
local RELEASE_VERSION=$(curl -s https://api.github.com/repos/fluxcd/$1/releases | jq -r 'sort_by(.published_at) | .[-1] | .tag_name')
local CURRENT_VERSION=$(sed -n "s/\(.*$1\/.*?ref=\)//p;n" "manifests/bases/$1/kustomization.yaml")
local CURRENT_VERSION=$(sed -n "s/.*$1\/archive\/\(.*\).zip.*/\1/p;n" manifests/bases/$1/kustomization.yaml)
if [[ "${RELEASE_VERSION}" != "${CURRENT_VERSION}" ]]; then
# bump kustomize