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/[email protected]
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 "[email protected]"
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/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}\
branch: main