forked from iamAntimPal/TechInterviewMaster
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (79 loc) Β· 2.57 KB
/
Copy pathGithub_Metrics.yml
File metadata and controls
89 lines (79 loc) Β· 2.57 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Github_Metrics
on:
schedule:
- cron: "0 0 * * *" # 5:30 AM IST
- cron: "0 6 * * *" # 11:30 AM IST
- cron: "0 13 * * *" # 6:30 PM IST
workflow_dispatch:
permissions:
contents: write
pull-requests: write
actions: read
jobs:
metrics:
runs-on: ubuntu-latest
steps:
- name: π§Ύ Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: π Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y jq
# βοΈ Generate LeetCode Metrics
- name: π LeetCode Stats
uses: lowlighter/metrics@latest
with:
filename: SVG/leetcode.svg
token: ${{ secrets.GH_METRICS_TOKEN }}
base: ""
plugin_leetcode: yes
plugin_leetcode_user: antim_pal
plugin_leetcode_sections: solved, skills, recent
config_timezone: Asia/Kolkata
# π Lines of Code
- name: π Lines of Code
uses: lowlighter/metrics@latest
with:
filename: SVG/lines.svg
token: ${{ secrets.GH_METRICS_TOKEN }}
base: ""
plugin_lines: yes
plugin_lines_sections: base, repositories
plugin_lines_skipped: testing, The-Futurists_Manthan_Frontend
plugin_lines_repositories_limit: 50
config_timezone: Asia/Kolkata
# π·οΈ Topics Overview
- name: π¦ Topics
uses: lowlighter/metrics@latest
with:
filename: SVG/topics.svg
token: ${{ secrets.GH_METRICS_TOKEN }}
base: ""
plugin_topics: yes
plugin_topics_limit: 10
plugin_topics_sort: star, activity
plugin_topics_mode: icons
config_timezone: Asia/Kolkata
# π€ Reactions
- name: π Reactions
uses: lowlighter/metrics@latest
with:
filename: SVG/reactions.svg
token: ${{ secrets.GH_METRICS_TOKEN }}
base: ""
plugin_reactions: yes
plugin_reactions_limit: 100
plugin_reactions_details: percentage
config_timezone: Asia/Kolkata
# β
Create Pull Request if changes exist
- name: Create Pull Request for SVG updates
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GH_METRICS_TOKEN }}
branch: metrics/svg-update
commit-message: "chore: update metrics SVGs"
title: "chore: update metrics SVGs"
body: "Auto-generated update of SVG files in the `SVG/` folder."
add-paths: SVG/*.svg