Metrics #21834
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
| # See https://github.com/lowlighter/metrics for documentation | |
| # This worflow is scheduled for every hour, and also run after each commit (GitHub action excluded) on master/main branch | |
| name: Metrics | |
| on: | |
| schedule: | |
| - cron: "0 0-22/2 * * *" | |
| push: | |
| branches: | |
| - master | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| github-metrics-personal: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Spotify RP | |
| uses: lowlighter/metrics@master | |
| with: | |
| filename: metrics.plugin.musicrecently.svg | |
| token: NOT_NEEDED | |
| committer_token: ${{ secrets.GITHUB_TOKEN }} | |
| plugin_music: yes | |
| plugin_music_provider: spotify # Use Spotify as provider | |
| plugin_music_mode: recent # Set plugin mode | |
| plugin_music_limit: 8 # Limit to 4 entries | |
| plugin_music_played_at: yes # Show timestamp (for spotify only) | |
| plugin_music_token: "${{ secrets.SPOTIFY_ID }}, ${{ secrets.SPOTIFY_SECRET }}, ${{ secrets.SPOTIFY_TOKEN }}" | |
| - name: 🗨️ Achievements | |
| if: ${{ success() || failure() }} | |
| uses: lowlighter/metrics@master | |
| with: | |
| base: "" | |
| filename: metrics.plugin.achievements.svg | |
| token: ${{ secrets.METRICS_TOKEN }} | |
| plugin_achievements: yes | |
| plugin_achievements_threshold: B # Display achievements with rank B or higher | |
| plugin_achievements_secrets: yes # Display unlocked secrets achievements | |
| plugin_achievements_ignored: octonaut # Hide octonaut achievement | |
| plugin_achievements_limit: 0 | |
| - name: 🗨️ Languages | |
| if: ${{ success() || failure() }} | |
| uses: lowlighter/metrics@master | |
| with: | |
| base: "" | |
| filename: metrics.plugin.languages.svg | |
| token: ${{ secrets.METRICS_TOKEN }} | |
| plugin_languages: yes | |
| plugin_languages_colors: "0:orange, javascript:#ff0000, ..." # Make most used languages orange and JavaScript red | |
| plugin_languages_details: bytes-size, percentage # Additionally display total bytes size and percentage | |
| plugin_languages_threshold: 2% # Hides all languages less than 2% | |
| plugin_languages_limit: 8 | |
| - name: 🗨️ Recent | |
| if: ${{ success() || failure() }} | |
| uses: lowlighter/metrics@master | |
| with: | |
| base: header | |
| filename: metrics.plugin.recent.svg | |
| token: ${{ secrets.METRICS_TOKEN }} | |
| plugin_activity: yes | |
| plugin_activity_limit: 5 # Limit to 5 events | |
| plugin_activity_days: 14 # Keep only events from last 14 days (can be set to 0 to disable limitations) | |
| plugin_activity_filter: all # Show all events (use table above to filter events types)# Display up to 8 languages | |
| plugin_activity_visibility: public | |