diff --git a/.github/workflows/web-shadcn-updater.yml b/.github/workflows/web-shadcn-updater.yml index 232c9fb98..b96e2ab57 100644 --- a/.github/workflows/web-shadcn-updater.yml +++ b/.github/workflows/web-shadcn-updater.yml @@ -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