File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments