Skip to content

Commit 3f0685d

Browse files
authored
Update GitHub Actions workflow for repository search
Refactor search commands for wrangler.toml and wrangler.jsonc files to store results in separate JSON files.
1 parent c1dc7e9 commit 3f0685d

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/search_github.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,19 @@ jobs:
1515
run: |
1616
echo "=== Repositories with shadcn and wrangler config ==="
1717
18-
# Combine results from both searches
19-
gh search code 'shadcn (path:wrangler.toml OR path:wrangler.jsonc)' \
18+
# Search for wrangler.toml
19+
echo "Searching wrangler.toml files..."
20+
gh search code 'shadcn path:wrangler.toml' \
2021
--limit 100 \
21-
--json repository \
22-
--jq '[.[] | .repository] | unique_by(.fullName) | sort_by(.stargazersCount) | reverse | .[0:20] | .[] | "\(.fullName) - ⭐ \(.stargazersCount) - \(.url)"'
22+
--json repository > toml_results.json
23+
24+
# Search for wrangler.jsonc
25+
echo "Searching wrangler.jsonc files..."
26+
gh search code 'shadcn path:wrangler.jsonc' \
27+
--limit 100 \
28+
--json repository > jsonc_results.json
29+
30+
# Combine and deduplicate results, sort by stars
31+
echo ""
32+
echo "=== Top 20 by Stars ==="
33+
j*

0 commit comments

Comments
 (0)