File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -133,6 +133,20 @@ jobs:
133133 message " - ${overlayRepoBranch} -> Backstage ${overlayRepoBranchToBackstageVersion[${overlayRepoBranch}]}"
134134 done
135135
136+ echo -n '{' > branch-versions.json
137+ bvComma=''
138+ for branch in "${!overlayRepoBranchToBackstageVersion[@]}"; do
139+ echo -n "${bvComma}\"${branch}\":\"${overlayRepoBranchToBackstageVersion[${branch}]}\"" >> branch-versions.json
140+ bvComma=','
141+ done
142+ echo '}' >> branch-versions.json
143+
144+ if [[ "${INPUT_WORKSPACE_PATH}" == "workspaces/backstage" ]]; then
145+ message "Backstage workspace uses release manifest discovery, skipping NPM scanning"
146+ echo '[]' > published-plugins.json
147+ exit 0
148+ fi
149+
136150 npmPackages=()
137151 for regexp in ${INPUT_REGEXPS}
138152 do
@@ -355,14 +369,6 @@ jobs:
355369 echo "::endgroup::"
356370 echo "$plugins" | jq -c > published-plugins.json
357371
358- echo -n '{' > branch-versions.json
359- bvComma=''
360- for branch in "${!overlayRepoBranchToBackstageVersion[@]}"; do
361- echo -n "${bvComma}\"${branch}\":\"${overlayRepoBranchToBackstageVersion[${branch}]}\"" >> branch-versions.json
362- bvComma=','
363- done
364- echo '}' >> branch-versions.json
365-
366372 - name : Gather Workspaces
367373 id : gather-workspaces
368374 shell : bash
You can’t perform that action at this time.
0 commit comments