Skip to content

Commit 32e9187

Browse files
Copilottwisti-dev
andauthored
fix: improve contentBoost sed pattern and add nullglob safety
Agent-Logs-Url: https://github.com/SLNE-Development/community-server-docs/sessions/b4b01f39-7035-492e-947e-4f00bd335010 Co-authored-by: twisti-dev <76837088+twisti-dev@users.noreply.github.com>
1 parent b729117 commit 32e9187

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,9 @@ jobs:
123123
- name: Remove contentBoost field from index files
124124
run: |
125125
cd algolia-indexes
126+
shopt -s nullglob
126127
for f in *.json; do
127-
sed -i 's/"contentBoost":[0-9]*,//g' "$f"
128+
sed -i -E 's/"contentBoost":[0-9]+,//g; s/,"contentBoost":[0-9]+//g' "$f"
128129
done
129130
130131
- name: Update Algolia Index

0 commit comments

Comments
 (0)