fix(web): shadcn/ui updater

This commit is contained in:
Collin Barrett 2025-06-15 15:45:34 -05:00 committed by Collin Barrett
parent ce245c8fd2
commit 16567fd06b

View file

@ -31,7 +31,7 @@ jobs:
id: diff
run: |
UPDATES=$(npx shadcn@latest diff || true)
if [[ $UPDATES == *"No updates available."* || -z "$UPDATES" ]]; then
if [[ $UPDATES == *"No updates found."* || -z "$UPDATES" ]]; then
echo "updates=false" >> $GITHUB_OUTPUT
rm -f shadcn-updates.txt
else
@ -42,7 +42,10 @@ jobs:
- name: Update components
if: steps.diff.outputs.updates == 'true'
run: |
echo "Preparing to update:"
cat shadcn-updates.txt
while IFS= read -r component; do
echo "Updating component: '$component'"
npx shadcn@latest add "$component" --overwrite
done < shadcn-updates.txt