Skip to content

Releases: melipass/lastfm-to-markdown

v1.3.1: Add link to album in last.fm on album picture

16 Apr 22:28
a09a81a
Compare
Choose a tag to compare

This version adds a link to the album page in last.fm to every album picture.

name: lastfm-to-markdown

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

jobs:
  lastfm:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: lastfm to markdown
        uses: melipass/lastfm-to-markdown@v1.3.1
        with:
          LASTFM_API_KEY: ${{ secrets.LASTFM_API_KEY }}
          LASTFM_USER: ${{ secrets.LASTFM_USER }}
#         INCLUDE_LINK: true # Optional. Defaults is false. If you want to include the link to the album page, set this to true.
#         IMAGE_COUNT: 6 # Optional. Defaults to 10. Feel free to remove this line if you want.
      - 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

v1.3: Fixes error when album has no cover image.

17 Aug 03:36
724ac9f
Compare
Choose a tag to compare

This version fixes an error when album has no cover image. Previous releases didn't commit changes until the album with no cover image left the weekly chart, in this release the album is skipped.

name: lastfm-to-markdown

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

jobs:
  lastfm:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: lastfm to markdown
        uses: melipass/lastfm-to-markdown@v1.3
        with:
          LASTFM_API_KEY: ${{ secrets.LASTFM_API_KEY }}
          LASTFM_USER: ${{ secrets.LASTFM_USER }}
#         IMAGE_COUNT: 6 # Optional. Defaults to 10. Feel free to remove this line if you want.
      - 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

v1.2: Image count

30 Jun 20:51
Compare
Choose a tag to compare

Added image count input parameter.

name: lastfm-to-markdown

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

jobs:
  lastfm:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: lastfm to markdown
        uses: melipass/lastfm-to-markdown@v1.1
        with:
          LASTFM_API_KEY: ${{ secrets.LASTFM_API_KEY }}
          LASTFM_USER: ${{ secrets.LASTFM_USER }}
+         IMAGE_COUNT: 10
      - 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

v1.1: Centered images

30 Jun 03:45
Compare
Choose a tag to compare

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.1
        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

v1.0

30 Jun 03:12
Compare
Choose a tag to compare

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

v0.1.2

30 Jun 02:56
a22f4fa
Compare
Choose a tag to compare
v0.1.2 Pre-release
Pre-release

It works on other repositories!

v0.1.1

30 Jun 02:53
24510e1
Compare
Choose a tag to compare
v0.1.1 Pre-release
Pre-release
Update action.yml

v0.1.0.0

30 Jun 02:51
df9f0d9
Compare
Choose a tag to compare
v0.1.0.0 Pre-release
Pre-release
Update action.yml

v0.0.9.9

30 Jun 02:48
b4613c7
Compare
Choose a tag to compare
v0.0.9.9 Pre-release
Pre-release
Update action.yml

v0.0.9.8

30 Jun 02:47
46c8aaa
Compare
Choose a tag to compare
v0.0.9.8 Pre-release
Pre-release
Update action.yml