Skip to content

Update profile README #17

Update profile README

Update profile README #17

name: Update profile README
on:
workflow_dispatch:
schedule:
- cron: "17 */12 * * *"
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Bun
uses: oven-sh/setup-bun@v2
- name: Generate README
run: bun run scripts/generate-profile-readme.ts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit changes
run: |
if git diff --quiet -- profile/README.md; then
echo "No profile README changes."
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add profile/README.md
git commit -m "Update profile README rankings"
git push