File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ jobs:
131131 if : github.event_name == 'workflow_dispatch'
132132 id : changed-files-user-input
133133 run : |
134- echo "::set-output name= all_changed_files:: ${{ github.event.inputs.files }}"
134+ echo "all_changed_files= ${{ github.event.inputs.files }}" >> $GITHUB_OUTPUT
135135 timeout-minutes : 5
136136
137137 # Run JavaScript tests:
Original file line number Diff line number Diff line change @@ -121,7 +121,8 @@ main() {
121121 required_by=" "
122122 for package in ${packages} ; do
123123 echo " Finding packages which depend on '${package} '..."
124- dependents=$( find lib/node_modules/@stdlib -type f -name ' *.js' -print0 | xargs -0 grep -ol -E " require\( [']${package} ['] \)" )
124+ escaped_package=$( echo " $package " | sed ' s/[\/&]/\\&/g' )
125+ dependents=$( find lib/node_modules/@stdlib -type f -name ' *.js' -print0 | xargs -0 grep -ol -E " require\( [']${escaped_package} ['] \)" )
125126 echo " Found: ${dependents} "
126127 if [ -n " ${dependents} " ]; then
127128 dependents=$( dirname $dependents | sed -E ' s/\/(bin|data|etc|include|lib|src|test)\/?$//' | sort -u)
You can’t perform that action at this time.
0 commit comments