diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml deleted file mode 100644 index 49fa590..0000000 --- a/.github/workflows/blank.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Metrics -on: - # Schedule daily updates - schedule: [{cron: "0 0 * * *"}] - # (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 - environment: - name: production - permissions: - contents: write - steps: - - uses: lowlighter/metrics@latest - with: - token: ${{ secrets.METRICS_TOKEN }} diff --git a/.github/workflows/metrics.yml b/.github/workflows/metrics.yml new file mode 100644 index 0000000..45ebcb7 --- /dev/null +++ b/.github/workflows/metrics.yml @@ -0,0 +1,90 @@ +name: Metrics +on: + # Schedule daily updates + schedule: [{cron: "0 0 * * *"}] + # (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 + environment: + name: production + permissions: + contents: write + steps: + - uses: lowlighter/metrics@latest + with: + token: ${{ secrets.METRICS_TOKEN }} + config_timezone: Europe/Berlin + base: header + plugin_isocalendar: yes + plugin_languages: yes + plugin_stars: yes + config_order: base.header, isocalendar, languages, stars + + +name: Compact display +uses: lowlighter/metrics@latest +with: + filename: metrics.plugin.achievements.compact.svg + token: ${{ secrets.METRICS_TOKEN }} + base: "" + plugin_achievements: yes + plugin_achievements_only: >- + polyglot, stargazer, sponsor, deployer, member, maintainer, developer, + scripter, packager, explorer, infographile, manager + plugin_achievements_display: compact + plugin_achievements_threshold: X + +name: Full history calendar +uses: lowlighter/metrics@latest +with: + filename: metrics.plugin.calendar.full.svg + token: ${{ secrets.METRICS_TOKEN }} + base: "" + plugin_calendar: yes + plugin_calendar_limit: 0 + +name: Most used (with details) +uses: lowlighter/metrics@latest +with: + filename: metrics.plugin.languages.details.svg + token: ${{ secrets.METRICS_TOKEN }} + base: "" + plugin_languages: yes + plugin_languages_ignored: >- + html, css, tex, less, dockerfile, makefile, qmake, lex, cmake, shell, + gnuplot + plugin_languages_details: bytes-size, percentage + plugin_languages_limit: 4 + + name: Repositories traffic +uses: lowlighter/metrics@latest +with: + filename: metrics.plugin.traffic.svg + token: ${{ secrets.METRICS_TOKEN }} + base: repositories + plugin_traffic: yes + + name: Icons +uses: lowlighter/metrics@latest +with: + filename: metrics.plugin.topics.icons.svg + token: NOT_NEEDED + base: "" + plugin_topics: yes + plugin_topics_limit: 0 + plugin_topics_mode: icons + + +name: Youtube Music - Recently listed +uses: lowlighter/metrics@latest +with: + token: NOT_NEEDED + base: "" + plugin_music_token: ${{ secrets.YOUTUBE_MUSIC_TOKENS }} + plugin_music: yes + plugin_music_mode: recent + plugin_music_provider: youtube