generate-metrics #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: generate-metrics | |
| on: | |
| schedule: | |
| - cron: "0 6 * * 1" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| metrics: | |
| runs-on: ubuntu-latest | |
| env: | |
| METRICS_TOKEN: ${{ secrets.METRICS_TOKEN || github.token }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Generate stats card | |
| uses: lowlighter/metrics@latest | |
| with: | |
| filename: assets/cyberpunk/stats.svg | |
| token: ${{ env.METRICS_TOKEN }} | |
| user: millennialdev | |
| template: classic | |
| base: activity, community, repositories, metadata | |
| config_display: large | |
| config_timezone: America/Los_Angeles | |
| use_prebuilt_image: yes | |
| - name: Generate languages card | |
| uses: lowlighter/metrics@latest | |
| with: | |
| filename: assets/cyberpunk/languages.svg | |
| token: ${{ env.METRICS_TOKEN }} | |
| user: millennialdev | |
| template: classic | |
| base: "" | |
| plugin_languages: yes | |
| plugin_languages_sections: most-used, recently-used | |
| plugin_languages_details: bytes-size, percentage | |
| plugin_languages_limit: 8 | |
| plugin_languages_other: yes | |
| plugin_languages_indepth: yes | |
| plugin_languages_recent_load: 400 | |
| plugin_languages_recent_days: 30 | |
| commits_authoring: millennialdev, [email protected] | |
| config_display: large | |
| use_prebuilt_image: yes | |
| - name: Generate streak card | |
| uses: lowlighter/metrics@latest | |
| with: | |
| filename: assets/cyberpunk/streak.svg | |
| token: ${{ env.METRICS_TOKEN }} | |
| user: millennialdev | |
| template: classic | |
| base: "" | |
| plugin_habits: yes | |
| plugin_habits_facts: yes | |
| plugin_habits_charts: yes | |
| plugin_habits_charts_type: graph | |
| plugin_habits_from: 1000 | |
| plugin_habits_days: 30 | |
| config_timezone: America/Los_Angeles | |
| config_display: large | |
| use_prebuilt_image: yes | |
| - name: Generate trophies card | |
| uses: lowlighter/metrics@latest | |
| with: | |
| filename: assets/cyberpunk/trophies.svg | |
| token: ${{ env.METRICS_TOKEN }} | |
| user: millennialdev | |
| template: classic | |
| base: "" | |
| plugin_achievements: yes | |
| plugin_achievements_display: compact | |
| plugin_achievements_secrets: no | |
| plugin_achievements_threshold: X | |
| plugin_achievements_limit: 8 | |
| config_display: large | |
| use_prebuilt_image: yes | |
| - name: Commit updated metrics | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: "chore: update metrics" | |
| file_pattern: assets/cyberpunk/stats.svg assets/cyberpunk/languages.svg assets/cyberpunk/streak.svg assets/cyberpunk/trophies.svg |