Fix workflow
This commit is contained in:
32
.github/workflows/workflow.yml
vendored
32
.github/workflows/workflow.yml
vendored
@@ -57,7 +57,7 @@ jobs:
|
|||||||
template: ${{ matrix.template }}
|
template: ${{ matrix.template }}
|
||||||
base: header, activity, community, repositories, metadata
|
base: header, activity, community, repositories, metadata
|
||||||
plugins_errors_fatal: yes
|
plugins_errors_fatal: yes
|
||||||
q: {"repo":"metrics"}
|
q: '{"repo":"metrics"}'
|
||||||
|
|
||||||
- name: ${{ matrix.template }} > Plugin > PageSpeed
|
- name: ${{ matrix.template }} > Plugin > PageSpeed
|
||||||
uses: lowlighter/metrics@master
|
uses: lowlighter/metrics@master
|
||||||
@@ -68,7 +68,7 @@ jobs:
|
|||||||
template: ${{ matrix.template }}
|
template: ${{ matrix.template }}
|
||||||
base: ""
|
base: ""
|
||||||
plugins_errors_fatal: yes
|
plugins_errors_fatal: yes
|
||||||
q: {"repo":"metrics"}
|
q: '{"repo":"metrics"}'
|
||||||
plugin_pagespeed: yes
|
plugin_pagespeed: yes
|
||||||
plugin_pagespeed_token: ${{ secrets.PAGESPEED_TOKEN }}
|
plugin_pagespeed_token: ${{ secrets.PAGESPEED_TOKEN }}
|
||||||
plugin_pagespeed_detailed: yes
|
plugin_pagespeed_detailed: yes
|
||||||
@@ -83,7 +83,7 @@ jobs:
|
|||||||
template: ${{ matrix.template }}
|
template: ${{ matrix.template }}
|
||||||
base: ""
|
base: ""
|
||||||
plugins_errors_fatal: yes
|
plugins_errors_fatal: yes
|
||||||
q: {"repo":"metrics"}
|
q: '{"repo":"metrics"}'
|
||||||
plugin_music: yes
|
plugin_music: yes
|
||||||
plugin_music_playlist: ${{ secrets.MUSIC_PLAYLIST_APPLE }}
|
plugin_music_playlist: ${{ secrets.MUSIC_PLAYLIST_APPLE }}
|
||||||
|
|
||||||
@@ -96,7 +96,7 @@ jobs:
|
|||||||
template: ${{ matrix.template }}
|
template: ${{ matrix.template }}
|
||||||
base: ""
|
base: ""
|
||||||
plugins_errors_fatal: yes
|
plugins_errors_fatal: yes
|
||||||
q: {"repo":"metrics"}
|
q: '{"repo":"metrics"}'
|
||||||
plugin_music: yes
|
plugin_music: yes
|
||||||
plugin_music_playlist: ${{ secrets.MUSIC_PLAYLIST_SPOTIFY }}
|
plugin_music_playlist: ${{ secrets.MUSIC_PLAYLIST_SPOTIFY }}
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ jobs:
|
|||||||
template: ${{ matrix.template }}
|
template: ${{ matrix.template }}
|
||||||
base: ""
|
base: ""
|
||||||
plugins_errors_fatal: yes
|
plugins_errors_fatal: yes
|
||||||
q: {"repo":"metrics"}
|
q: '{"repo":"metrics"}'
|
||||||
plugin_music: yes
|
plugin_music: yes
|
||||||
plugin_music_provider: spotify
|
plugin_music_provider: spotify
|
||||||
plugin_music_token: ${{ secrets.SPOTIFY_TOKENS }}
|
plugin_music_token: ${{ secrets.SPOTIFY_TOKENS }}
|
||||||
@@ -123,7 +123,7 @@ jobs:
|
|||||||
template: ${{ matrix.template }}
|
template: ${{ matrix.template }}
|
||||||
base: ""
|
base: ""
|
||||||
plugins_errors_fatal: yes
|
plugins_errors_fatal: yes
|
||||||
q: {"repo":"metrics"}
|
q: '{"repo":"metrics"}'
|
||||||
plugin_posts: yes
|
plugin_posts: yes
|
||||||
plugin_posts_source: dev.to
|
plugin_posts_source: dev.to
|
||||||
|
|
||||||
@@ -136,7 +136,7 @@ jobs:
|
|||||||
template: ${{ matrix.template }}
|
template: ${{ matrix.template }}
|
||||||
base: ""
|
base: ""
|
||||||
plugins_errors_fatal: yes
|
plugins_errors_fatal: yes
|
||||||
q: {"repo":"metrics"}
|
q: '{"repo":"metrics"}'
|
||||||
plugin_isocalendar: yes
|
plugin_isocalendar: yes
|
||||||
plugin_isocalendar_duration: full-year
|
plugin_isocalendar_duration: full-year
|
||||||
|
|
||||||
@@ -149,7 +149,7 @@ jobs:
|
|||||||
template: ${{ matrix.template }}
|
template: ${{ matrix.template }}
|
||||||
base: ""
|
base: ""
|
||||||
plugins_errors_fatal: yes
|
plugins_errors_fatal: yes
|
||||||
q: {"repo":"metrics"}
|
q: '{"repo":"metrics"}'
|
||||||
plugin_habits: yes
|
plugin_habits: yes
|
||||||
plugin_habits_from: 5
|
plugin_habits_from: 5
|
||||||
plugin_habits_charts: yes
|
plugin_habits_charts: yes
|
||||||
@@ -163,7 +163,7 @@ jobs:
|
|||||||
template: ${{ matrix.template }}
|
template: ${{ matrix.template }}
|
||||||
base: ""
|
base: ""
|
||||||
plugins_errors_fatal: yes
|
plugins_errors_fatal: yes
|
||||||
q: {"repo":"metrics"}
|
q: '{"repo":"metrics"}'
|
||||||
plugin_languages: yes
|
plugin_languages: yes
|
||||||
|
|
||||||
- name: ${{ matrix.template }} > Plugin > Follow-up
|
- name: ${{ matrix.template }} > Plugin > Follow-up
|
||||||
@@ -175,7 +175,7 @@ jobs:
|
|||||||
template: ${{ matrix.template }}
|
template: ${{ matrix.template }}
|
||||||
base: ""
|
base: ""
|
||||||
plugins_errors_fatal: yes
|
plugins_errors_fatal: yes
|
||||||
q: {"repo":"metrics"}
|
q: '{"repo":"metrics"}'
|
||||||
plugin_followup: yes
|
plugin_followup: yes
|
||||||
|
|
||||||
- name: ${{ matrix.template }} > Plugin > Lines and Traffic
|
- name: ${{ matrix.template }} > Plugin > Lines and Traffic
|
||||||
@@ -187,7 +187,7 @@ jobs:
|
|||||||
template: ${{ matrix.template }}
|
template: ${{ matrix.template }}
|
||||||
base: ""
|
base: ""
|
||||||
plugins_errors_fatal: yes
|
plugins_errors_fatal: yes
|
||||||
q: {"repo":"metrics"}
|
q: '{"repo":"metrics"}'
|
||||||
plugin_lines: yes
|
plugin_lines: yes
|
||||||
plugin_traffic: yes
|
plugin_traffic: yes
|
||||||
|
|
||||||
@@ -200,7 +200,7 @@ jobs:
|
|||||||
template: ${{ matrix.template }}
|
template: ${{ matrix.template }}
|
||||||
base: ""
|
base: ""
|
||||||
plugins_errors_fatal: yes
|
plugins_errors_fatal: yes
|
||||||
q: {"repo":"metrics"}
|
q: '{"repo":"metrics"}'
|
||||||
plugin_gists: yes
|
plugin_gists: yes
|
||||||
|
|
||||||
- name: ${{ matrix.template }} > Plugin > Topics (starred)
|
- name: ${{ matrix.template }} > Plugin > Topics (starred)
|
||||||
@@ -212,7 +212,7 @@ jobs:
|
|||||||
template: ${{ matrix.template }}
|
template: ${{ matrix.template }}
|
||||||
base: ""
|
base: ""
|
||||||
plugins_errors_fatal: yes
|
plugins_errors_fatal: yes
|
||||||
q: {"repo":"metrics"}
|
q: '{"repo":"metrics"}'
|
||||||
plugin_topics: yes
|
plugin_topics: yes
|
||||||
plugin_topics_mode: starred
|
plugin_topics_mode: starred
|
||||||
plugin_topics_sort: random
|
plugin_topics_sort: random
|
||||||
@@ -226,7 +226,7 @@ jobs:
|
|||||||
template: ${{ matrix.template }}
|
template: ${{ matrix.template }}
|
||||||
base: ""
|
base: ""
|
||||||
plugins_errors_fatal: yes
|
plugins_errors_fatal: yes
|
||||||
q: {"repo":"metrics"}
|
q: '{"repo":"metrics"}'
|
||||||
plugin_topics: yes
|
plugin_topics: yes
|
||||||
plugin_topics_mode: mastered
|
plugin_topics_mode: mastered
|
||||||
plugin_topics_sort: stars
|
plugin_topics_sort: stars
|
||||||
@@ -240,7 +240,7 @@ jobs:
|
|||||||
template: ${{ matrix.template }}
|
template: ${{ matrix.template }}
|
||||||
base: ""
|
base: ""
|
||||||
plugins_errors_fatal: yes
|
plugins_errors_fatal: yes
|
||||||
q: {"repo":"metrics"}
|
q: '{"repo":"metrics"}'
|
||||||
plugin_projects: yes
|
plugin_projects: yes
|
||||||
plugin_projects_repositories: lowlighter/metrics/projects/1
|
plugin_projects_repositories: lowlighter/metrics/projects/1
|
||||||
plugin_projects_limit: 2
|
plugin_projects_limit: 2
|
||||||
@@ -254,7 +254,7 @@ jobs:
|
|||||||
template: ${{ matrix.template }}
|
template: ${{ matrix.template }}
|
||||||
base: ""
|
base: ""
|
||||||
plugins_errors_fatal: yes
|
plugins_errors_fatal: yes
|
||||||
q: {"repo":"metrics"}
|
q: '{"repo":"metrics"}'
|
||||||
plugin_tweets: yes
|
plugin_tweets: yes
|
||||||
plugin_tweets_limit: 2
|
plugin_tweets_limit: 2
|
||||||
plugin_tweets_token: ${{ secrets.TWITTER_TOKEN }}
|
plugin_tweets_token: ${{ secrets.TWITTER_TOKEN }}
|
||||||
|
|||||||
@@ -278,7 +278,7 @@ inputs:
|
|||||||
# If more topics must be displayed, they will be grouped in an ellipsis
|
# If more topics must be displayed, they will be grouped in an ellipsis
|
||||||
plugin_topics_limit:
|
plugin_topics_limit:
|
||||||
description: Number of starred topics to display
|
description: Number of starred topics to display
|
||||||
default: 0
|
default: ""
|
||||||
|
|
||||||
# Projects plugin
|
# Projects plugin
|
||||||
# Display active projects
|
# Display active projects
|
||||||
|
|||||||
2
action/dist/index.js
vendored
2
action/dist/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -6,12 +6,14 @@
|
|||||||
if ((!enabled)||(!q.topics))
|
if ((!enabled)||(!q.topics))
|
||||||
return null
|
return null
|
||||||
//Parameters override
|
//Parameters override
|
||||||
let {"topics.sort":sort = "stars", "topics.mode":mode = "starred", "topics.limit":limit = (mode === "mastered" ? 0 : 15)} = q
|
let {"topics.sort":sort = "stars", "topics.mode":mode = "starred", "topics.limit":limit} = q
|
||||||
//Shuffle
|
//Shuffle
|
||||||
const shuffle = (sort === "random")
|
const shuffle = (sort === "random")
|
||||||
//Sort method
|
//Sort method
|
||||||
sort = {starred:"created", activity:"updated", stars:"stars", random:"created"}[sort] ?? "starred"
|
sort = {starred:"created", activity:"updated", stars:"stars", random:"created"}[sort] ?? "starred"
|
||||||
//Limit
|
//Limit
|
||||||
|
if (!Number.isFinite(limit))
|
||||||
|
limit = (mode === "mastered" ? 0 : 15)
|
||||||
limit = Math.max(0, Math.min(20, Number(limit)))
|
limit = Math.max(0, Math.min(20, Number(limit)))
|
||||||
//Mode
|
//Mode
|
||||||
mode = ["starred", "mastered"].includes(mode) ? mode : "starred"
|
mode = ["starred", "mastered"].includes(mode) ? mode : "starred"
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
template:"${{ matrix.template }}",
|
template:"${{ matrix.template }}",
|
||||||
base:"",
|
base:"",
|
||||||
plugins_errors_fatal:true,
|
plugins_errors_fatal:true,
|
||||||
q:'{"repo":"metrics"}',
|
q:`'{"repo":"metrics"}'`,
|
||||||
...context
|
...context
|
||||||
}).map(([key, value]) => `${" ".repeat(5)}${key}: ${
|
}).map(([key, value]) => `${" ".repeat(5)}${key}: ${
|
||||||
typeof value === "boolean" ? (value ? "yes" : "no") :
|
typeof value === "boolean" ? (value ? "yes" : "no") :
|
||||||
|
|||||||
Reference in New Issue
Block a user