diff --git a/.github/workflows/kommander-branch.yaml b/.github/workflows/kommander-branch.yaml index 359fb76fd..c898262e7 100644 --- a/.github/workflows/kommander-branch.yaml +++ b/.github/workflows/kommander-branch.yaml @@ -58,6 +58,7 @@ jobs: env: PULL_REQUEST_BODY: ${{ github.event.pull_request.body }} run: | + set -x cd kommander git config user.name d2iq-mergebot git config user.email ci-mergebot@d2iq.com @@ -74,15 +75,21 @@ jobs: if [[ ${{ needs.get-kapps-branch-name.outputs.escaped_branch_name }} == chartbump/* ]] ; then # Update kuttl tests that reference the app being bumped + echo "#### Testing Reloader Bump ####" kapps=$(echo $PULL_REQUEST_BODY | grep kapps:) kapps=${kapps#"kapps:"} + echo "#### Test-1 ####" echo $kapps semver="(0|[1-9]+[0-9]*)\.(0|[1-9]+[0-9]*)\.(0|[1-9]+[0-9]*)" for appversion in $kapps; do + echo "#### Test-2 ####" + echo "$appversion" appname=$(echo $appversion | sed -r 's/(.*)(-.*)/\1/') + echo "#### Test-3 ####" + echo "$appname" for file in $(find ./tests ./docs -type f -print); do case $file in - *".yaml" | *".yaml.tmpl" | *".md") sed -r -i "s/$appname-$semver/$appversion/g" $file;; + *".yaml" | *".yaml.tmpl" | *".md") sed -r -i "s/$appname-$semver-(.*)/$appversion/g" $file;; esac done done