-
Notifications
You must be signed in to change notification settings - Fork 1
175 lines (158 loc) · 6.53 KB
/
readme.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
# Workflow to automatically update my website's PageSpeed insights in the README
# Based on https://github.com/lowlighter/metrics/
name: GitHub profile README generator
on: # When to run the workflow
schedule: [ { cron: "20 4 * * 6" } ] # Every Saturday @ 04:20
push: { branches: [ "main" ] } # When pushing to main
concurrency: # Queue workflows rather than overlap them
group: metrics
jobs:
resources: # Generate the SVGs that will be used in the README
name: Generate resources
runs-on: ubuntu-latest
steps:
- name: Update home.svg
uses: lowlighter/metrics@latest
with:
# Common config
user: kip93
token: ${{ secrets.TOKEN }}
output_action: commit
committer_branch: main
committer_message: Update ${filename} - [GitHub Action]
plugins_errors_fatal: yes
config_timezone: Etc/UTC
# Output file
template: classic
config_display: regular
filename: metrics/home.svg
config_output: svg
# Output info
base: ""
plugin_pagespeed: yes # Get PageSpeed insights
plugin_pagespeed_token: ${{ secrets.PAGESPEED_TOKEN }}
plugin_pagespeed_detailed: yes # Show detailed results
plugin_pagespeed_screenshot: no # Do not take a screen capture
plugin_pagespeed_url: https://kip93.net/ # Webpage to audit
extras_css: | # Make it prettier
* { font-size: 18px; }
h2, h2 +.field { margin: 0px; opacity: 0%; width: 0px; height: 0px; }
.field { margin-bottom: 5px !important; }
.categories { margin-bottom: 10px !important; }
text { font-size: 46px !important; }
.audits >section:last-child { flex: 0 !important; }
.audit.text { min-width: 48px; }
- name: Update resume.svg
uses: lowlighter/metrics@latest
with:
# Common config
user: kip93
token: ${{ secrets.TOKEN }}
output_action: commit
committer_branch: main
committer_message: Update ${filename} - [GitHub Action]
plugins_errors_fatal: yes
config_timezone: Etc/UTC
# Output file
template: classic
config_display: regular
filename: metrics/resume.svg
config_output: svg
# Output info
base: ""
plugin_pagespeed: yes # Get PageSpeed insights
plugin_pagespeed_token: ${{ secrets.PAGESPEED_TOKEN }}
plugin_pagespeed_detailed: yes # Show detailed results
plugin_pagespeed_screenshot: no # Do not take a screen capture
plugin_pagespeed_url: https://kip93.net/resume/ # Webpage to audit
extras_css: | # Make it prettier
* { font-size: 18px; }
h2, h2 +.field { margin: 0px; opacity: 0%; width: 0px; height: 0px; }
.field { margin-bottom: 5px !important; }
.categories { margin-bottom: 10px !important; }
text { font-size: 46px !important; }
.audits >section:last-child { flex: 0 !important; }
.audit.text { min-width: 48px; }
- name: Update about.svg
uses: lowlighter/metrics@latest
with:
# Common config
user: kip93
token: ${{ secrets.TOKEN }}
output_action: commit
committer_branch: main
committer_message: Update ${filename} - [GitHub Action]
plugins_errors_fatal: yes
config_timezone: Etc/UTC
# Output file
template: classic
config_display: regular
filename: metrics/about.svg
config_output: svg
# Output info
base: ""
plugin_pagespeed: yes # Get PageSpeed insights
plugin_pagespeed_token: ${{ secrets.PAGESPEED_TOKEN }}
plugin_pagespeed_detailed: yes # Show detailed results
plugin_pagespeed_screenshot: no # Do not take a screen capture
plugin_pagespeed_url: https://kip93.net/about/ # Webpage to audit
extras_css: | # Make it prettier
* { font-size: 18px; }
h2, h2 +.field { margin: 0px; opacity: 0%; width: 0px; height: 0px; }
.field { margin-bottom: 5px !important; }
.categories { margin-bottom: 10px !important; }
text { font-size: 46px !important; }
.audits >section:last-child { flex: 0 !important; }
.audit.text { min-width: 48px; }
- name: Update gemini.svg
uses: lowlighter/metrics@latest
with:
# Common config
user: kip93
token: ${{ secrets.TOKEN }}
output_action: commit
committer_branch: main
committer_message: Update ${filename} - [GitHub Action]
plugins_errors_fatal: yes
config_timezone: Etc/UTC
# Output file
template: classic
config_display: regular
filename: metrics/gemini.svg
config_output: svg
# Output info
base: ""
plugin_pagespeed: yes # Get PageSpeed insights
plugin_pagespeed_token: ${{ secrets.PAGESPEED_TOKEN }}
plugin_pagespeed_detailed: yes # Show detailed results
plugin_pagespeed_screenshot: no # Do not take a screen capture
plugin_pagespeed_url: https://gemini.kip93.net/ # Webpage to audit
extras_css: | # Make it prettier
* { font-size: 18px; }
h2, h2 +.field { margin: 0px; opacity: 0%; width: 0px; height: 0px; }
.field { margin-bottom: 5px !important; }
.categories { margin-bottom: 10px !important; }
text { font-size: 46px !important; }
.audits >section:last-child { flex: 0 !important; }
.audit.text { min-width: 48px; }
readme: # Use the template and generated resources to update the README
name: Generate README
needs: [resources] # Run after the previous job is finished
runs-on: ubuntu-latest
steps:
- name: Update README.md
uses: lowlighter/metrics@latest
with:
# Common config
user: kip93
token: ${{ secrets.TOKEN }}
output_action: commit
committer_branch: main
committer_message: Update ${filename} - [GitHub Action]
config_timezone: Etc/UTC
# Input file
markdown: https://raw.githubusercontent.com/kip93/kip93.net/main/TEMPLATE.md
# Output file
template: markdown
filename: README.md
config_output: markdown