-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaction.yml
38 lines (33 loc) · 993 Bytes
/
action.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
35
36
37
38
name: 'lastfm to markdown'
author: 'melipass'
description: 'Adds your Last.fm Weekly Chart to your GitHub Profile or any repo with a README.md'
inputs:
LASTFM_API_KEY:
description: 'Last.fm API Key. Store it as a GitHub Secret.'
required: true
default: LASTFM_API_KEY
LASTFM_USER:
description: 'Last.fms user to get their weekly chart.'
required: true
default: LASTFM_USER
IMAGE_COUNT:
description: 'How many album covers will appear.'
required: false
default: '10'
INCLUDE_LINK:
description: 'Include a link to the album on Last.fm.'
required: false
default: false
runs:
using: 'composite'
steps:
- env:
LASTFM_API_KEY: ${{ inputs.LASTFM_API_KEY }}
LASTFM_USER: ${{ inputs.LASTFM_USER }}
IMAGE_COUNT: ${{ inputs.IMAGE_COUNT }}
INCLUDE_LINK: ${{ inputs.INCLUDE_LINK }}
run: python ${{ github.action_path }}/lastfm.py
shell: bash
branding:
icon: 'music'
color: 'red'