File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ REPO="${2:-keycloak}"
99ORG=" ${3:- keycloak} "
1010
1111if [[ " ${TARGET_BRANCH} " != " release/" * ]]; then
12+ echo " skip"
1213 exit 0
1314fi
1415
@@ -20,6 +21,10 @@ ALL_RELEASES=$(gh release list \
2021 --template ' {{range .}}{{.name}}{{"\n"}}{{end}}'
2122)
2223MAJOR_MINOR=${TARGET_BRANCH# " release/" }
23- MAJOR_MINOR_RELEASES=$( echo " ${ALL_RELEASES} " | grep " ${MAJOR_MINOR} " )
24+ MAJOR_MINOR_RELEASES=$( echo " ${ALL_RELEASES} " | ( grep " ${MAJOR_MINOR} " || true) )
2425
25- echo " ${MAJOR_MINOR_RELEASES} " | jq -cnR ' [inputs] | map({version: .})'
26+ if [[ -z " ${MAJOR_MINOR_RELEASES} " ]]; then
27+ echo " skip"
28+ else
29+ echo -n " ${MAJOR_MINOR_RELEASES} " | jq -cnR ' [inputs] | map({version: .})'
30+ fi
Original file line number Diff line number Diff line change @@ -898,7 +898,7 @@ jobs:
898898
899899 mixed-cluster-compatibility-tests :
900900 name : Cluster Compatibility Tests
901- if : needs.conditional.outputs.ci-compatibility-matrix != ''
901+ if : needs.conditional.outputs.ci-compatibility-matrix != 'skip '
902902 runs-on : ubuntu-latest
903903 needs :
904904 - build
You can’t perform that action at this time.
0 commit comments