Skip to content

Commit 1120006

Browse files
authored
ci: add update languages action (anuraghazra#2484)
* ci: add update languages action * ci: make sure PR is created when upstream languages are updated
1 parent 7aa502d commit 1120006

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

.github/workflows/update-langs.yaml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Update supported languages
2+
on:
3+
schedule:
4+
- cron: "0 0 */30 * *"
5+
6+
jobs:
7+
updateLanguages:
8+
if: github.repository == 'anuraghazra/github-readme-stats'
9+
name: Update supported languages
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [16.x]
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Setup Node
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
cache: npm
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
env:
27+
CI: true
28+
29+
- name: Run update-languages-json.js script
30+
run: npm run generate-langs-json
31+
32+
- name: Create Pull Request if upstream language file is changed
33+
uses: peter-evans/create-pull-request@v4
34+
with:
35+
commit-message: "refactor: update languages JSON"
36+
branch: "update_langs/patch"
37+
delete-branch: true
38+
title: Update languages JSON
39+
body:
40+
"The
41+
[update-langs](https://github.com/anuraghazra/github-readme-stats/actions/workflows/update-langs.yaml)
42+
action found new/updated languages in the [upstream languages JSON
43+
file](https://raw.githubusercontent.com/github/linguist/master/lib/linguist/languages.yml)."
44+
labels: "ci, lang-card"

src/common/languageColors.json

+18
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
"Csound Score": "#1a1a1a",
103103
"Cuda": "#3A4E3A",
104104
"Curry": "#531242",
105+
"Cypher": "#34c0eb",
105106
"Cython": "#fedf5b",
106107
"D": "#ba595e",
107108
"DM": "#447265",
@@ -124,6 +125,7 @@
124125
"Earthly": "#2af0ff",
125126
"Easybuild": "#069406",
126127
"Ecere Projects": "#913960",
128+
"Ecmarkup": "#eb8131",
127129
"EditorConfig": "#fff1f2",
128130
"Eiffel": "#4d6977",
129131
"Elixir": "#6e4a7e",
@@ -215,6 +217,7 @@
215217
"Idris": "#b30000",
216218
"Ignore List": "#000000",
217219
"ImageJ Macro": "#99AAFF",
220+
"Imba": "#16cec6",
218221
"Inno Setup": "#264b99",
219222
"Io": "#a9188d",
220223
"Ioke": "#078193",
@@ -286,6 +289,7 @@
286289
"Mathematica": "#dd1100",
287290
"Max": "#c4a79c",
288291
"Mercury": "#ff2b2b",
292+
"Mermaid": "#ff3670",
289293
"Meson": "#007800",
290294
"Metal": "#8f14e9",
291295
"MiniYAML": "#ff1111",
@@ -318,6 +322,10 @@
318322
"Nu": "#c9df40",
319323
"NumPy": "#9C8AF9",
320324
"Nunjucks": "#3d8137",
325+
"OASv2-json": "#85ea2d",
326+
"OASv2-yaml": "#85ea2d",
327+
"OASv3-json": "#85ea2d",
328+
"OASv3-yaml": "#85ea2d",
321329
"OCaml": "#3be133",
322330
"ObjectScript": "#424893",
323331
"Objective-C": "#438eff",
@@ -327,14 +335,18 @@
327335
"Omgrofl": "#cabbff",
328336
"Opal": "#f7ede0",
329337
"Open Policy Agent": "#7d9199",
338+
"OpenAPI Specification v2": "#85ea2d",
339+
"OpenAPI Specification v3": "#85ea2d",
330340
"OpenCL": "#ed2e2d",
331341
"OpenEdge ABL": "#5ce600",
332342
"OpenQASM": "#AA70FF",
333343
"OpenSCAD": "#e5cd45",
344+
"Option List": "#476732",
334345
"Org": "#77aa99",
335346
"Oxygene": "#cdd0e3",
336347
"Oz": "#fab738",
337348
"P4": "#7055b5",
349+
"PDDL": "#0d00ff",
338350
"PEG.js": "#234d6b",
339351
"PHP": "#4F5D95",
340352
"PLSQL": "#dad8d8",
@@ -351,6 +363,7 @@
351363
"PigLatin": "#fcd7de",
352364
"Pike": "#005390",
353365
"PogoScript": "#d80074",
366+
"Polar": "#ae81ff",
354367
"Portugol": "#f8bd00",
355368
"PostCSS": "#dc3a0c",
356369
"PostScript": "#da291c",
@@ -414,20 +427,23 @@
414427
"Sass": "#a53b70",
415428
"Scala": "#c22d40",
416429
"Scaml": "#bd181a",
430+
"Scenic": "#fdc700",
417431
"Scheme": "#1e4aec",
418432
"Scilab": "#ca0f21",
419433
"Self": "#0579aa",
420434
"ShaderLab": "#222c37",
421435
"Shell": "#89e051",
422436
"ShellCheck Config": "#cecfcb",
423437
"Shen": "#120F14",
438+
"Simple File Verification": "#C9BFED",
424439
"Singularity": "#64E6AD",
425440
"Slash": "#007eff",
426441
"Slice": "#003fa2",
427442
"Slim": "#2b2b2b",
428443
"SmPL": "#c94949",
429444
"Smalltalk": "#596706",
430445
"Smarty": "#f0c040",
446+
"Smithy": "#c44536",
431447
"Solidity": "#AA6746",
432448
"SourcePawn": "#f69e1d",
433449
"Squirrel": "#800000",
@@ -478,6 +494,7 @@
478494
"Vim Script": "#199f4b",
479495
"Vim Snippet": "#199f4b",
480496
"Visual Basic .NET": "#945db7",
497+
"Visual Basic 6.0": "#2c6353",
481498
"Volt": "#1F1F1F",
482499
"Vue": "#41b883",
483500
"Vyper": "#2980b9",
@@ -514,6 +531,7 @@
514531
"fish": "#4aae47",
515532
"hoon": "#00b171",
516533
"jq": "#c7254e",
534+
"just": "#384d54",
517535
"kvlang": "#1da6e0",
518536
"mIRC Script": "#3d57c3",
519537
"mcfunction": "#E22837",

0 commit comments

Comments
 (0)