Skip to content

Commit 66dc889

Browse files
committed
update profile
1 parent 9aa46c9 commit 66dc889

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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 }}

0 commit comments

Comments
 (0)