Skip to content

Update README cards #65

Update README cards

Update README cards #65

Workflow file for this run

name: Update README cards
on:
schedule:
- cron: "0 0 * * *" # Runs once daily at midnight
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- name: Generate stats card (light)
uses: readme-tools/github-readme-stats-action@v1
with:
card: stats
options: username=${{ github.repository_owner }}&theme=default&hide_border=true&show_icons=true
path: profile/stats-light.svg
token: ${{ secrets.GITHUB_TOKEN }}
- name: Generate stats card (dark)
uses: readme-tools/github-readme-stats-action@v1
with:
card: stats
options: username=${{ github.repository_owner }}&theme=github_dark&hide_border=true&show_icons=true
path: profile/stats-dark.svg
token: ${{ secrets.GITHUB_TOKEN }}
- name: Generate top languages card (light)
uses: readme-tools/github-readme-stats-action@v1
with:
card: top-langs
options: username=${{ github.repository_owner }}&theme=default&hide_border=true&layout=compact
path: profile/top-langs-light.svg
token: ${{ secrets.GITHUB_TOKEN }}
- name: Generate top languages card (dark)
uses: readme-tools/github-readme-stats-action@v1
with:
card: top-langs
options: username=${{ github.repository_owner }}&theme=github_dark&hide_border=true&layout=compact
path: profile/top-langs-dark.svg
token: ${{ secrets.GITHUB_TOKEN }}
- name: Commit cards
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add profile/*.svg
git commit -m "Update README cards" || exit 0
git push