mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-10 15:32:05 -03:30
CI pipeline breaks when there are no tags for a release branch yet
Closes #43057 Signed-off-by: Ryan Emerson <remerson@ibm.com>
This commit is contained in:
parent
817c78f0d9
commit
12ae8b7cc9
9
.github/scripts/version-compatibility.sh
vendored
9
.github/scripts/version-compatibility.sh
vendored
@ -9,6 +9,7 @@ REPO="${2:-keycloak}"
|
||||
ORG="${3:-keycloak}"
|
||||
|
||||
if [[ "${TARGET_BRANCH}" != "release/"* ]]; then
|
||||
echo "skip"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@ -20,6 +21,10 @@ ALL_RELEASES=$(gh release list \
|
||||
--template '{{range .}}{{.name}}{{"\n"}}{{end}}'
|
||||
)
|
||||
MAJOR_MINOR=${TARGET_BRANCH#"release/"}
|
||||
MAJOR_MINOR_RELEASES=$(echo "${ALL_RELEASES}" | grep "${MAJOR_MINOR}")
|
||||
MAJOR_MINOR_RELEASES=$(echo "${ALL_RELEASES}" | (grep "${MAJOR_MINOR}" || true))
|
||||
|
||||
echo "${MAJOR_MINOR_RELEASES}" | jq -cnR '[inputs] | map({version: .})'
|
||||
if [[ -z "${MAJOR_MINOR_RELEASES}" ]]; then
|
||||
echo "skip"
|
||||
else
|
||||
echo -n "${MAJOR_MINOR_RELEASES}" | jq -cnR '[inputs] | map({version: .})'
|
||||
fi
|
||||
|
||||
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -898,7 +898,7 @@ jobs:
|
||||
|
||||
mixed-cluster-compatibility-tests:
|
||||
name: Cluster Compatibility Tests
|
||||
if: needs.conditional.outputs.ci-compatibility-matrix != ''
|
||||
if: needs.conditional.outputs.ci-compatibility-matrix != 'skip'
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- build
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user