File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Update CodinGame Language Stats
2+
3+ on :
4+ push :
5+ branches : [ main, master ]
6+ workflow_dispatch :
7+ schedule :
8+ - cron : ' 0 0 * * *'
9+
10+ jobs :
11+ update-stats :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+ with :
16+ fetch-depth : 0
17+
18+ - name : Generate CodinGame Language Badges
19+ id : generate
20+ uses : helyio/codingame-stats@v1
21+ with :
22+ repository_root : ' .'
23+ output_marker : ' CG_LANG_BADGES'
24+
25+ - name : Update README.md with Badges
26+ uses : akhil-ghatare/markdown-replacer@v1
27+ with :
28+ marker : ' CG_LANG_BADGES'
29+ replacement : ${{ steps.generate.outputs.badges_markdown }}
30+ file : ' README.md'
31+
32+ - name : Commit and Push README changes
33+ uses : stefanzweifel/git-auto-commit-action@v5
34+ with :
35+ commit_message : " 🤖 Update CodinGame Language Badges"
36+ branch : ${{ github.ref_name }}
You can’t perform that action at this time.
0 commit comments