Releases: melipass/lastfm-to-markdown
v1.3.1: Add link to album in last.fm on album picture
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.
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
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
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
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
It works on other repositories!
v0.1.1
Update action.yml
v0.1.0.0
Update action.yml
v0.0.9.9
Update action.yml
v0.0.9.8
Update action.yml