Skip to content

Commit 2d79677

Browse files
committed
chore: show the source backstage version in compatibility check report.
Signed-off-by: David Festal <dfestal@redhat.com>
1 parent 0222e88 commit 2d79677

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/check-backstage-compatibility.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ jobs:
134134
135135
if [[ -f "${d}/plugins-list.yaml" ]] && [[ -f "${d}/source.json" ]]
136136
then
137-
workspaceBackstageVersion=$(jq -r '.["repo-backstage-version"] // ""' "${d}/source.json")
137+
sourceBackstageVersion=$(jq -r '.["repo-backstage-version"] // ""' "${d}/source.json")
138+
workspaceBackstageVersion="${sourceBackstageVersion}"
138139
# If the workspace has an overridden backstage.json file in the overlay, use it to check the backstage version compatibility
139140
if [[ -f "${d}/backstage.json" ]]
140141
then
@@ -147,7 +148,11 @@ jobs:
147148
incompatibleVersion="*not found*"
148149
elif [[ "${targetBackstageVersion}" != "$(semver -r ~${workspaceBackstageVersion} ${targetBackstageVersion})" ]]
149150
then
150-
incompatibleVersion="${workspaceBackstageVersion}"
151+
incompatibleVersion="${sourceBackstageVersion}"
152+
if [[ "${incompatibleVersion}" == "" ]]
153+
then
154+
incompatibleVersion="*not found*"
155+
fi
151156
fi
152157
if [[ "${incompatibleVersion}" != "" ]]
153158
then

0 commit comments

Comments
 (0)