Skip to content

Commit

Permalink
Avoid nesting sub-shells
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfestal authored Dec 17, 2024
1 parent 108ebc9 commit 6bde84d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/update-plugins-repo-refs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ jobs:
run: |
npm install semver -g
regexps='@backstage-community\/'
npmPackages=`npm search "/^(${regexps})/" --searchlimit=1000 --json --no-description --searchexclude "/^(?\!(${regexps}))/" | jq -r '.[].name' | sort`
backstageVersions=$(cat branches.json | jq -r 'to_entries | map(.value)[]')
plugins=$(
comma=""
echo '['
for package in `npm search "/^(${regexps})/" --searchlimit=1000 --json --no-description --searchexclude "/^(?\!(${regexps}))/" | jq -r '.[].name' | sort`
for package in ${npmPackages}
do
if [[ "${package}" == *"-node" ]] || [[ "${package}" == *"-common" ]] || [[ "${package}" == *"-react" ]]
then
Expand Down

0 comments on commit 6bde84d

Please sign in to comment.