-
Notifications
You must be signed in to change notification settings - Fork 80
34 lines (30 loc) · 909 Bytes
/
lastfm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
IMAGE_COUNT: 12
- 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 ":notes: 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