chore: test action
This commit is contained in:
parent
89171f99ef
commit
923b3479e8
1 changed files with 8 additions and 2 deletions
10
.github/workflows/fetch-artist-charts.yaml
vendored
10
.github/workflows/fetch-artist-charts.yaml
vendored
|
@ -4,13 +4,19 @@ on:
|
|||
schedule:
|
||||
- cron: '00 09 * * 5'
|
||||
jobs:
|
||||
refresh-feed:
|
||||
FetchArtistCharts:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Fetch API Data 📦
|
||||
- name: Fetch
|
||||
uses: JamesIves/fetch-api-data-action@v2
|
||||
with:
|
||||
endpoint: https://ws.audioscrobbler.com/2.0/?method=user.getweeklyartistchart&user=coryd_&api_key=${{ secrets.LASTFM_API_KEY }}&format=json
|
||||
configuration: '{ "method": "GET" }'
|
||||
save-location: 'src/_data/json'
|
||||
save-name: 'weekly-artist-charts.json'
|
||||
- name: Commit
|
||||
uses: EndBug/add-and-commit@v9
|
||||
with:
|
||||
add: 'src/_data/json/weekly-artist-charts.json'
|
||||
author_name: 'Cory Dransfeldt'
|
||||
author_email: 'hi@coryd.dev'
|
||||
|
|
Reference in a new issue