-
Notifications
You must be signed in to change notification settings - Fork 3
227 lines (207 loc) Β· 9.08 KB
/
main.yml
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
name: Metrics
on:
# Schedule updates (each hour]
schedule: [{cron: "0 0 * * 0"}]
# Lines below let you run workflow manually and on each commit (optional)
push: {branches: ["master", "main"]}
workflow_dispatch:
jobs:
github-metrics:
runs-on: ubuntu-latest
steps:
# See action.yml for all options
- uses: lowlighter/metrics@latest
with:
# Your GitHub token
token: ${{ secrets.METRICS_TOKEN }}
# GITHUB_TOKEN is a special auto-generated token restricted to current repository, which is used to push files in it
committer_token: ${{ secrets.GITHUB_TOKEN }}
- name: π° Activity plugin
uses: lowlighter/metrics@master
with:
filename: metrics.plugin.activity.svg
token: ${{ secrets.METRICS_TOKEN }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
base: ""
plugin_activity: yes
plugin_activity_limit: 7
plugin_activity_days: 0
plugin_activity_filter: issue, pr, release, fork, star
plugins_errors_fatal: ${{ github.repository == 'lowlighter/lowlighter' }}
config_padding: 7%, 20%
- name: ποΈ Follow-up plugin
uses: lowlighter/metrics@master
with:
filename: metrics.plugin.followup.svg
token: ${{ secrets.METRICS_TOKEN }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
base: ""
plugin_followup: yes
plugins_errors_fatal: ${{ github.repository == 'lowlighter/lowlighter' }}
- name: π‘ Habits plugin
uses: lowlighter/metrics@master
with:
filename: metrics.plugin.habits.svg
token: ${{ secrets.METRICS_TOKEN }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
base: ""
plugin_habits: yes
plugin_habits_facts: yes
plugin_habits_charts: yes
plugins_errors_fatal: ${{ github.repository == 'lowlighter/lowlighter' }}
config_timezone: Asia/Colombo
- name: π
Isocalendar plugin (full year)
uses: lowlighter/metrics@master
with:
filename: metrics.plugin.isocalendar.svg
token: ${{ secrets.METRICS_TOKEN }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
base: ""
plugin_isocalendar: yes
plugin_isocalendar_duration: full-year
plugins_errors_fatal: ${{ github.repository == 'lowlighter/lowlighter' }}
- name: π·οΈ Languages plugin (detailed)
uses: lowlighter/metrics@master
with:
filename: metrics.plugin.languages.svg
token: ${{ secrets.METRICS_TOKEN }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
base: ""
plugin_languages_sections: most-used, recently-used
plugin_languages: yes
plugins_errors_fatal: ${{ github.repository == 'lowlighter/lowlighter' }}
- name: π¨βπ» Lines plugin
uses: lowlighter/metrics@master
with:
filename: metrics.plugin.lines.svg
token: ${{ secrets.METRICS_TOKEN }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
base: repositories
plugin_lines: yes
plugins_errors_fatal: ${{ github.repository == 'lowlighter/lowlighter' }}
- name: β±οΈ PageSpeed plugin (detailed)
uses: lowlighter/metrics@master
with:
filename: metrics.plugin.pagespeed.svg
token: NOT_NEEDED
committer_token: ${{ secrets.GITHUB_TOKEN }}
plugin_pagespeed: yes
plugin_pagespeed_detailed: yes
plugin_pagespeed_token: ${{ secrets.PAGESPEED_TOKEN }}
plugin_pagespeed_url: ${{ secrets.WEBSITE_URL }}
plugins_errors_fatal: ${{ github.repository == 'lowlighter/lowlighter' }}
- name: Music plugin (recent)
uses: lowlighter/metrics@master
with:
filename: metrics.plugin.music.recent.svg
token: ${{ secrets.METRICS_TOKEN }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
base: ""
plugin_music: yes
plugin_music_provider: spotify
plugin_music_mode: recent
plugin_music_token: "${{ secrets.SPOTIFY_CLIENT_ID }}, ${{ secrets.SPOTIFY_CLIENT_SECRET }}, ${{ secrets.SPOTIFY_REFRESH_TOKEN }}"
plugin_music_limit: 2
plugins_errors_fatal: yes
config_timezone: Asia/Colombo
use_prebuilt_image: master
- name: βοΈ Posts plugin
uses: lowlighter/metrics@master
with:
filename: metrics.plugin.posts.svg
token: ${{ secrets.METRICS_TOKEN }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
base: ""
plugin_posts: yes
plugin_posts_source: dev.to
plugins_errors_fatal: ${{ github.repository == 'lowlighter/lowlighter' }}
- name: β¨ Stargazers plugin
uses: lowlighter/metrics@master
with:
filename: metrics.plugin.stargazers.svg
token: ${{ secrets.METRICS_TOKEN }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
base: ""
plugin_stargazers: yes
plugins_errors_fatal: ${{ github.repository == 'lowlighter/lowlighter' }}
# Display latest starred repositories
- name: π Stars plugin
uses: lowlighter/metrics@master
with:
filename: metrics.plugin.stars.svg
token: ${{ secrets.METRICS_TOKEN }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
base: ""
plugin_stars: yes
plugin_stars_limit: 2
plugins_errors_fatal: ${{ github.repository == 'lowlighter/lowlighter' }}
# - name: π€ Tweets plugin
# uses: lowlighter/metrics@master
# with:
# filename: metrics.plugin.tweets.svg
# token: NOT_NEEDED
# user: UB_Shubh
# committer_token: ${{ secrets.GITHUB_TOKEN }}
# plugin_tweets: yes
# plugin_tweets_token: ${{ secrets.TWITTER_TOKEN }}
# plugin_tweets_user: github
# plugins_errors_fatal: ${{ github.repository == 'withshubh/withshubh' }}
# Illustrate plugin errors :
# ${{ secrets.METRICS_TOKEN }} is missing "public_repo" scope, which is required for "plugin_projects"
- name: π¬ Plugin error example
uses: lowlighter/metrics@master
with:
filename: metrics.plugin.error.svg
token: ${{ secrets.METRICS_TOKEN }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
base: ""
plugin_projects: yes
# Illustrate header hiden features with debug flags
# "--cakeday" will act as if it's your account birthday
# "--hireable" will act as if "Available for hire" is enabled
# "--halloween" will act as if it was halloween, changing the colors of calendars
- name: π¬ Header (hidden features)
uses: lowlighter/metrics@master
with:
filename: metrics.header.svg
token: ${{ secrets.METRICS_TOKEN }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
base: header
debug_flags: --cakeday --hireable --halloween
- name: Topics plugin (mastered)
uses: lowlighter/metrics@master
with:
filename: metrics.plugin.topics.mastered.svg
token: ${{ secrets.METRICS_TOKEN }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
base: ""
plugin_topics: yes
plugin_topics_mode: mastered
plugin_topics_limit: 0
plugins_errors_fatal: yes
- name: π Achievements
uses: lowlighter/metrics@latest
with:
# ... other options
plugin_achievements: yes
plugin_achievements_threshold: B # Display achievements with rank B or higher
plugin_achievements_secrets: yes # Display unlocked secrets achievements
plugin_achievements_display: detailed # Use compact display
plugin_achievements_limit: 0 # Display all unlocked achievements (no limit)
plugin_achievements_ignored: octonaut # Hide "octonaut" achievement
plugin_achievements_only: explorer # Display only "explorer" achievement (don't use with "ignored" option)
- name: Notable contributions
uses: lowlighter/metrics@latest
with:
# ... other options
plugin_notable: yes
plugin_notable_filter: stars:>500 # Only display repositories with 500 stars or more (syntax based on GitHub search query)
plugin_notable_from: organization # Only display contributions within organization repositories
plugin_notable_repositories: yes # Display repositories name instead of only organization name
plugin_notable_indepth: yes # Gather additional informations about contributions
- name: Sponsors
uses: lowlighter/metrics@latest
with:
# ... other options
plugin_sponsors: yes
plugin_sponsors_sections: goal, about # Display goal and about sections