Skip to content

Commit 8298b7d

Browse files
committed
Added new root readme to for loops
1 parent 7f4eee2 commit 8298b7d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/update-root-usercount-jsd-shields-weekly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ jobs:
141141
# Update usercount shields
142142
if [ "$TOTAL_USERS" == "0" ] ; then echo "Error getting total usercount"
143143
else
144-
for readme in $(find docs/ -name "README.md") ; do
144+
for readme in README.md $(find docs/ -name "README.md") ; do
145145
old_readme=$(<"$readme")
146146
sed -i -E "s|(badge/[^-]+-)[0-9.,km+]+([^?]+\?logo=weightsandbiases)|\1$TOTAL_USERS\2|gI" "$readme"
147147
new_readme=$(<"$readme")
@@ -154,7 +154,7 @@ jobs:
154154
# Update jsDelivr shields
155155
if [ "$TOTAL_REQUESTS" == "0" ] ; then echo "Error getting total jsDelivr requests"
156156
else
157-
for readme in $(find docs/ -name "README.md") ; do
157+
for readme in README.md $(find docs/ -name "README.md") ; do
158158
old_readme=$(<"$readme")
159159
sed -i -E "s|(badge/jsDelivr_[^-]+-)[0-9.,km+]+|\1$TOTAL_REQUESTS|Ig" "$readme"
160160
new_readme=$(<"$readme")

0 commit comments

Comments
 (0)