Skip to content

Commit 6676fb8

Browse files
committed
fix: update profile readme with new defaults and fixed linked to full file for profile, added more seo content to readme
1 parent 52da8a7 commit 6676fb8

3 files changed

Lines changed: 347 additions & 177 deletions

File tree

.github/workflows/update-profile-readme.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@ on:
1919
description: 'Max repos to show in README'
2020
required: false
2121
type: number
22-
default: 50
22+
default: 200
2323
max_categories:
2424
description: 'Max categories to show'
2525
required: false
2626
type: number
27-
default: 10
27+
default: 20
2828
include_toc:
2929
description: 'Include table of contents'
3030
required: false
3131
type: boolean
32-
default: false
32+
default: true
3333
include_description:
3434
description: 'Include repo descriptions'
3535
required: false
3636
type: boolean
37-
default: false
37+
default: true
3838

3939
jobs:
4040
update-profile:
@@ -77,6 +77,8 @@ jobs:
7777
pip install -e .
7878
7979
- name: Update profile README
80+
env:
81+
STARRED_REPO: ${{ github.repository }}
8082
run: |
8183
cd starred
8284
@@ -92,6 +94,7 @@ jobs:
9294
CMD="starred update-readme --readme $PROFILE_README --data starred_data.json"
9395
CMD="$CMD --max-repos ${{ inputs.max_repos || 50 }}"
9496
CMD="$CMD --max-categories ${{ inputs.max_categories || 10 }}"
97+
CMD="$CMD --starred-repo-url https://github.com/$STARRED_REPO"
9598
9699
if [ "${{ inputs.include_toc }}" == "true" ]; then
97100
CMD="$CMD --include-toc"
@@ -104,19 +107,24 @@ jobs:
104107
# Run the command
105108
eval $CMD
106109
110+
- name: Copy full STARRED_REPOS.md to profile repo
111+
run: |
112+
cp starred/STARRED_REPOS.md profile/STARRED_REPOS.md
113+
echo "✅ Copied STARRED_REPOS.md to profile repo"
114+
107115
- name: Commit and push to profile repo
108116
run: |
109117
cd profile
110118
111119
git config --local user.email "github-actions[bot]@users.noreply.github.com"
112120
git config --local user.name "github-actions[bot]"
113121
114-
git add README.md
122+
git add README.md STARRED_REPOS.md
115123
116124
if git diff --staged --quiet; then
117125
echo "No changes to commit"
118126
else
119127
git commit -m "chore: update starred repos section"
120128
git push
121-
echo "✅ Updated profile README"
129+
echo "✅ Updated profile README and STARRED_REPOS.md"
122130
fi

0 commit comments

Comments
 (0)