mirror of
https://github.com/Stone-Red-Code/Stone-Red-Code.git
synced 2026-09-04 00:56:21 +02:00
Updated options for stats and top languages cards to include additional parameters such as background color, theme, and border visibility.
49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
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
|
|
uses: readme-tools/github-readme-stats-action@v1
|
|
with:
|
|
card: stats
|
|
options: username=${{ github.repository_owner }}&show_icons=true&bg_color=00000000&theme=dark&hide_border=true&count_private=true
|
|
path: profile/stats.svg
|
|
token: ${{ secrets.GH_TOKEN }}
|
|
|
|
- name: Generate top languages card
|
|
uses: readme-tools/github-readme-stats-action@v1
|
|
with:
|
|
card: top-langs
|
|
options: username=${{ github.repository_owner }}&exclude_repo=DesktopMagic&bg_color=00000000&theme=dark&hide_border=true
|
|
path: profile/top-langs.svg
|
|
token: ${{ secrets.GH_TOKEN }}
|
|
|
|
- name: Generate pin card
|
|
uses: readme-tools/github-readme-stats-action@v1
|
|
with:
|
|
card: pin
|
|
options: username=readme-tools&repo=github-readme-stats
|
|
path: profile/pin-readme-tools-github-readme-stats.svg
|
|
token: ${{ secrets.GH_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
|