Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
music

GitHub Action

lastfm to markdown

v0.0.9.9 Pre-release

lastfm to markdown

music

lastfm to markdown

Adds your Last.fm Weekly Chart to your GitHub Profile or any repo with a README.md

Installation

Copy and paste the following snippet into your .yml file.

              

- name: lastfm to markdown

uses: melipass/[email protected]

Learn more about this action in melipass/lastfm-to-markdown

Choose a version

last.fm to markdown

πŸ€– About this repo

This is a small project that I started because I wanted to have my last.fm weekly chart on my GitHub profile. I used GitHub Actions because they can be scheduled with cron jobs and you won't need extra privileges to modify the README.md file if it's in the same repo. If you come from the GitHub Marketplace, I'm still learning about making it usable from other repositories (any help appreciated!), but the code at the lastfmweekly.yml is enough to run things as long as you have the following requirements in place:

πŸ‘©πŸ½β€πŸ’» What you need

  • A README.md file.
  • Last.fm API key
    • Fill this form to instantly get one. Requires a last.fm account.
  • Set up a GitHub Secret called LASTFM_API_KEY with the value given by last.fm.
  • Also set up a LASTFM_USER GitHub Secret with the user you'll get the weekly charts for.
  • Add a <!-- lastfm --> tag in your README.md file, with two blank lines below it. The album covers will be placed here.

🚧 To do

  • Fix the workflow to make it usable from other repositories, especially for those who come from the GitHub Marketplace.
  • Allow users to choose the image size and image count for the album covers.
  • Feel free to send a PR for anything you believe would be useful.

🎡 My weekly last.fm chart (example)

a