-
-
Notifications
You must be signed in to change notification settings - Fork 0
183 lines (171 loc) · 5.23 KB
/
update.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
name: Metrics
on:
# Schedule daily updates
schedule: [{cron: "34 2 * * *"}]
# (optional) Run workflow manually
workflow_dispatch:
# (optional) Run workflow when pushing on master/main
push: {branches: ["master", "main"]}
jobs:
github-metrics:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
# checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v2
# install dependencies
- name: Add packages
run: |
sudo apt-get update
sudo apt-get install -y python3-pip
sudo apt-get install -y python3-setuptools
sudo apt-get install -y python3-wheel
sudo apt-get install -y python3-dev
pip3 install --upgrade pip
# debug README.md
- name: Debug README.md
run: |
pwd
ls -la
# shell script to assemble the README.md
- name: Assemble README.md
run: |
cat README.md.header > README.md
cat blog-posts.md >> README.md
cat README.md.footer >> README.md
echo "
[//]: # (`date`)
" >> README.md
- uses: lowlighter/metrics@latest
with:
filename: github-metrics.svg
token: ${{ secrets.GH_TOKEN }}
user: darkflib
template: classic
base: header, activity, community, repositories, metadata
config_timezone: Europe/London
plugin_isocalendar: yes
plugin_languages: yes
plugin_activity: yes
plugin_stars: no
plugin_stars_limit: 25
plugin_topics: no
plugin_sponsors: no
plugin_achievements: no
- uses: lowlighter/metrics@latest
with:
filename: github-achievements.svg
token: ${{ secrets.GH_TOKEN }}
user: darkflib
template: classic
base:
config_timezone: Europe/London
plugin_achievements: yes
- uses: lowlighter/metrics@latest
with:
filename: github-stars.svg
token: ${{ secrets.GH_TOKEN }}
user: darkflib
template: classic
base:
config_timezone: Europe/London
plugin_isocalendar: no
plugin_languages: no
plugin_activity: no
plugin_stars: yes
plugin_stars_limit: 10
plugin_topics: no
plugin_sponsors: no
plugin_achievements: no
- uses: lowlighter/metrics@latest
with:
filename: github-stars-more.svg
token: ${{ secrets.GH_TOKEN }}
user: darkflib
template: classic
base:
config_timezone: Europe/London
plugin_isocalendar: no
plugin_languages: no
plugin_activity: no
plugin_stars: yes
plugin_stars_limit: 100
plugin_topics: no
plugin_sponsors: no
plugin_achievements: no
- uses: lowlighter/metrics@latest
with:
filename: github-sponsors.svg
token: ${{ secrets.GH_TOKEN }}
user: darkflib
template: classic
base:
config_timezone: Europe/London
plugin_isocalendar: no
plugin_languages: no
plugin_activity: no
plugin_stars: no
plugin_stars_limit: 25
plugin_topics: no
plugin_sponsors: yes
plugin_achievements: no
- uses: lowlighter/metrics@latest
with:
filename: github-topics.svg
token: ${{ secrets.GH_TOKEN }}
user: darkflib
template: classic
base:
config_timezone: Europe/London
plugin_isocalendar: no
plugin_languages: no
plugin_activity: no
plugin_stars: no
plugin_stars_limit: 25
plugin_topics: yes
plugin_sponsors: no
plugin_achievements: no
- uses: lowlighter/metrics@latest
with:
filename: github-activity.svg
token: ${{ secrets.GH_TOKEN }}
user: darkflib
template: classic
base:
config_timezone: Europe/London
plugin_isocalendar: no
plugin_languages: no
plugin_activity: yes
plugin_stars: no
plugin_stars_limit: 25
plugin_topics: no
plugin_sponsors: no
plugin_achievements: no
- uses: lowlighter/metrics@latest
with:
filename: github-activity.svg
token: ${{ secrets.GH_TOKEN }}
user: darkflib
template: classic
base:
config_timezone: Europe/London
plugin_isocalendar: no
plugin_languages: no
plugin_activity: yes
plugin_stars: no
plugin_stars_limit: 25
plugin_topics: no
plugin_sponsors: no
plugin_achievements: no
# commit the changes
- name: Commit files
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "Update README.md"
git fetch
git rebase origin/main
git push