Skip to content

Commit f409730

Browse files
Create readme-cards.yaml
1 parent 1988784 commit f409730

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Update README cards
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: write
14+
15+
steps:
16+
- uses: actions/checkout@v6
17+
18+
- name: Generate stats card
19+
uses: readme-tools/github-readme-stats-action@v1
20+
with:
21+
card: stats
22+
options: username=${{ github.repository_owner }}&theme=transparent&hide_rank=true&show_icons=true&count_private=true&include_all_commits=true&layout=compact&line_height=24
23+
path: profile/stats.svg
24+
token: ${{ secrets.TOKEN }}
25+
26+
- name: Generate top languages card
27+
uses: readme-tools/github-readme-stats-action@v1
28+
with:
29+
card: top-langs
30+
options: username=${{ github.repository_owner }}&theme=transparent&show_icons=true&count_private=true&include_all_commits=true&layout=compact&langs_count=8
31+
path: profile/top-langs.svg
32+
token: ${{ secrets.TOKEN }}
33+
34+
- name: Commit cards
35+
run: |
36+
git config user.name "github-actions[bot]"
37+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
38+
git add profile/*.svg
39+
git commit -m "Update README cards" || exit 0
40+
git push

0 commit comments

Comments
 (0)