Skip to content

Commit 5004078

Browse files
authored
Create multiple-stats-cards.yml
1 parent 9115787 commit 5004078

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# This workflow configures the user-statistician to
2+
# generate three SVGs, one each for contribution stats,
3+
# repositories stats, and the language distribution chart, using
4+
# the dark color theme. It uses the image-file input to assign each
5+
# SVG a unique filename. It is configured on a daily
6+
# schedule at 3am.
7+
8+
name: user-statistician
9+
10+
on:
11+
schedule:
12+
- cron: '0 3 * * *'
13+
push:
14+
branches: [ main, master ]
15+
paths: [ '.github/workflows/multiple-stats-cards.yml' ]
16+
workflow_dispatch:
17+
18+
jobs:
19+
stats:
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: write
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- name: Generate the languages distribution
28+
uses: cicirello/user-statistician@v1
29+
with:
30+
image-file: images/languages.svg
31+
colors: dark
32+
hide-keys: general, contributions, repositories
33+
env:
34+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
35+
36+
- name: Generate the contributions stats
37+
uses: cicirello/user-statistician@v1
38+
with:
39+
image-file: images/contribs.svg
40+
colors: dark
41+
hide-keys: general, languages, repositories
42+
env:
43+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
44+
45+
- name: Generate the repositories stats
46+
uses: cicirello/user-statistician@v1
47+
with:
48+
image-file: images/repos.svg
49+
colors: dark
50+
hide-keys: general, contributions, languages
51+
env:
52+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)