You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
lastfm to markdown
v1.0
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:
- 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.
- 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.