-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (45 loc) · 1.26 KB
/
dialy.yaml
File metadata and controls
57 lines (45 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Daily README Update
on:
schedule:
- cron: "0 */6 * * *"
push:
branches:
- main
workflow_dispatch:
inputs:
bar_style:
description: 'Progress bar style (block | shade | ascii | dot | arrow | pipe)'
required: false
default: 'block'
type: choice
options:
- block
- shade
- ascii
- dot
- pipe
- emoji
permissions:
contents: write
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: main
- name: Update README stats
id: update_stats
uses: ./
with:
waka-token: ${{ secrets.WAKA_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}
bar-style: ${{ github.event.inputs.bar_style || vars.BAR_STYLE || 'block' }}
- name: Commit and push changes
if: steps.update_stats.outputs.changed == 'true'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore(readme): update daily stats and followers"
file_pattern: "README.md data/coding_stats.json"
branch: main