Skip to content

Commit c1dc7e9

Browse files
authored
Add GitHub Actions workflow for searching shadcn
1 parent df83c6e commit c1dc7e9

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Search Cloudflare Workers with shadcn
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * 0'
7+
8+
jobs:
9+
search:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Search for shadcn in Cloudflare Workers projects
13+
env:
14+
GH_TOKEN: ${{ github.token }}
15+
run: |
16+
echo "=== Repositories with shadcn and wrangler config ==="
17+
18+
# Combine results from both searches
19+
gh search code 'shadcn (path:wrangler.toml OR path:wrangler.jsonc)' \
20+
--limit 100 \
21+
--json repository \
22+
--jq '[.[] | .repository] | unique_by(.fullName) | sort_by(.stargazersCount) | reverse | .[0:20] | .[] | "\(.fullName) - ⭐ \(.stargazersCount) - \(.url)"'

0 commit comments

Comments
 (0)