metrics.svg file is not getting created #131
-
|
I followed the steps as you specified in the repos readme.md. After I create the GitHub action workflow you said it will generate a new metrics image, but there are no images created. |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments
-
|
Hello ! Since you're using Scheduled runs are working (each hour), but it seems you forgotten to put your personal token in your repository secrets ( After fixing these, it should work 👍 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Yes, since you named your secret |
Beta Was this translation helpful? Give feedback.
-
|
Alright, Thank you .. Good work.... Keep it up |
Beta Was this translation helpful? Give feedback.
-
|
Thank you ! |
Beta Was this translation helpful? Give feedback.
-
|
So I tried to add your workflow and i get this error do you know why? i changed all the secret tokens to MY_METRICS and the branch to main |
Beta Was this translation helpful? Give feedback.
-
|
My workflow is configured to die in case of error so that's why. If you use the following in your workflow, it should works : name: GitHub metrics
on:
schedule:
- cron: "0 * * * *"
push:
branches: "main"
jobs:
github-metrics-personal:
runs-on: ubuntu-latest
steps:
- name: Personal metrics
uses: lowlighter/metrics@latest
with:
filename: metrics.svg
token: ${{ secrets.MY_METRICS }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
base: "header, repositories"
plugin_lines: yes
# plugin_music: yes
# plugin_music_playlist: ${{ secrets.MUSIC_PLAYLIST }}
# plugin_music_limit: 2
plugin_isocalendar: yes
plugin_topics: yes
plugin_topics_mode: mastered
plugin_habits: yes
plugin_habits_from: 200
plugin_habits_facts: no
plugin_habits_charts: yes
plugin_languages: yes
plugin_languages_ignored: html, css, tex, less, dockerfile, makefile, qmake, lex, cmake, shell, gnuplot
# plugin_languages_skipped: lowlighter
# plugins_errors_fatal: yes
config_timezone: Europe/Paris
- name: Personal metrics (additional)
uses: lowlighter/metrics@latest
with:
filename: metrics.additional.svg
token: ${{ secrets.MY_METRICS }}
committer_token: ${{ secrets.GITHUB_TOKEN }}
base: "metadata"
plugin_stargazers: yes
plugin_stars: yes
plugin_stars_limit: 3
# - name: Personal projects
# uses: lowlighter/metrics@latest
# with:
# filename: metrics.projects.svg
# token: ${{ secrets.METRICS_BOT_TOKEN }}
# committer_token: ${{ secrets.GITHUB_TOKEN }}
# user: lowlighter
# base: ""
# plugin_projects: yes
# plugin_projects_repositories: lowlighter/metrics/projects/1
# plugin_projects_limit: 0
# config_timezone: Europe/Paris
|
Beta Was this translation helpful? Give feedback.
-
|
Hey it worked, thanks again |
Beta Was this translation helpful? Give feedback.
-
|
You're welcome ! Thanks for using metrics 👍 |
Beta Was this translation helpful? Give feedback.

Hello !
Since you're using
maininstead ofmaster, you need to change it in your workflow.Scheduled runs are working (each hour), but it seems you forgotten to put your personal token in your repository secrets (
${{ secrets.METRICS_TOKEN }}appears to be empty)After fixing these, it should work 👍