Skip to content

Commit

Permalink
Update missing tracks (#18)
Browse files Browse the repository at this point in the history
* Update missing tracks

* Update GHA workflow for scraping

* Update README
  • Loading branch information
justinyoo authored Oct 23, 2024
1 parent 4649c55 commit 42daa56
Show file tree
Hide file tree
Showing 6 changed files with 4,251 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/scrape.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,10 @@ jobs:
$collection = Get-Content "./data/spotify100-$date.json" | ConvertFrom-Json
$tracks = $collection.missingTracks | ConvertTo-Json -Depth 100
gh issue create --title "Missing tracks in Spotify playlist" --body "The following tracks are missing in the Spotify playlist:`r`n```````jsonr`n$tracks`r`n```````r`n"
gh issue create `
--title "Missing tracks in Spotify playlist" `
--body "The following tracks are missing in the Spotify playlist:`r`n```````jsonr`n$tracks`r`n```````r`n" `
--label missing-tracks
- name: Close sync request
if: |
Expand All @@ -164,4 +167,6 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: |
$issueNumber = ${{ github.event.issue.number }}
gh issue close $issueNumber -r completed -c "The chart has been synced up-to-date."
gh issue close $issueNumber `
--reason completed `
--comment "The chart has been synced up-to-date."
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ There are some samples in the `samples` directory.

### MelonChart on Spotify

There's a [playlist on Spotify](https://open.spotify.com/playlist/6zRtKdszUiBnJm4lIbC6h9?si=kCR3OHPVTHmI3jHEY1Qyrg) using this library. If you want to sync the Melon chart to Spotify up-to-date, create an [issue](../../issues), and it will automatically update the playlist.
There's a [playlist on Spotify](https://open.spotify.com/playlist/6zRtKdszUiBnJm4lIbC6h9?si=kCR3OHPVTHmI3jHEY1Qyrg) using this library. If you want to sync the Melon chart to Spotify up-to-date, create a [sync request](../../issues/new?assignees=&labels=sync-request&projects=&template=01_SYNC_CHART.yml&title=%5BSync%5D%3A+Request+for+chart+sync), and it will automatically update the playlist.
![Melon Chart on Spotify](./assets/melon-chart-on-spotify.png)
Expand Down
Loading

0 comments on commit 42daa56

Please sign in to comment.