Skip to content
Compare
Choose a tag to compare
@melipass melipass released this 30 Jun 03:12
· 768 commits to main since this release

To use this release, add a name.yml workflow file to the .github/workflows folder in your repository with the following code:

name: lastfm-profile

on:
  schedule:
    - cron: '2 0 * * *'
  workflow_dispatch:

jobs:
  lastfm-to-readme:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: lastfm to markdown
        uses: melipass/lastfm-to-markdown@v1.0
        with:
          LASTFM_API_KEY: ${{ secrets.LASTFM_API_KEY }}
          LASTFM_USER: ${{ secrets.LASTFM_USER }}
      - name: commit changes
        continue-on-error: true
        run: |
          git config --local user.email "action@github.com"
          git config --local user.name "GitHub Action"
          git add -A
          git commit -m "Updated last.fm's weekly chart" -a

      - name: push changes
        continue-on-error: true
        uses: ad-m/github-push-action@v0.6.0
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}\
          branch: main

Please note that your README.md must have a <!-- lastfm --> tag where you want the covers to be placed, and you must add the Last.fm's API key and user as GitHub Secrets to your repo under the names LASTFM_API_KEY and LASTFM_USER.

For updated instructions including how to obtain a Last.fm API key, and any further updates, check the repository here: https://github.com/melipass/lastfm-to-markdown