@@ -100,24 +100,24 @@ jobs:
100100 $result[$($result.indexOf("{"))..$($result.Length-1)] | Out-File -FilePath "spotify100-$date.json" -Force
101101 popd
102102
103- - name : Run Spotify app - Billboard Hot 100
104- if : steps.check_to_proceed.outputs.proceed == 'true'
105- shell : pwsh
106- run : |
107- $appsettings = Get-Content -Path ./samples/SpotifyPlaylist.ConsoleApp/appsettings.Development.sample.json | ConvertFrom-Json
108- $appsettings.Azure.APIM.BaseUrl = "${{ secrets.APIM_BASE_URL }}"
109- $appsettings.Azure.APIM.SubscriptionKey = "${{ secrets.APIM_SUBSCRIPTION_KEY }}"
110- $appsettings | ConvertTo-Json -Depth 100 | Out-File -FilePath ./samples/SpotifyPlaylist.ConsoleApp/appsettings.Development.json -Force
111-
112- $date = (Get-Date).ToUniversalTime().AddHours(9).ToString("yyyyMMdd")
113- # $result = dotnet run --project ./samples/SpotifyPlaylist.ConsoleApp/ -- -t spotify -s ${{ secrets.SPOTIFY_BILLBOARD_HOT100_PLAYLIST_ID }} --json | ConvertFrom-Json
114- $result = dotnet run --project ./samples/SpotifyPlaylist.ConsoleApp/ -- -t spotify -s ${{ secrets.SPOTIFY_BILLBOARD_HOT100_PLAYLIST_ID }} --json
115-
116- mkdir -p ./data
117- pushd ./data
118- # $result[$($result.indexOf("{"))..$($result.Length-1)] | ConvertTo-Json -Depth 100 | Out-File -FilePath "billboard100-$date.json" -Force
119- $result[$($result.indexOf("{"))..$($result.Length-1)] | Out-File -FilePath "billboard100-$date.json" -Force
120- popd
103+ # - name: Run Spotify app - Billboard Hot 100
104+ # if: steps.check_to_proceed.outputs.proceed == 'true'
105+ # shell: pwsh
106+ # run: |
107+ # $appsettings = Get-Content -Path ./samples/SpotifyPlaylist.ConsoleApp/appsettings.Development.sample.json | ConvertFrom-Json
108+ # $appsettings.Azure.APIM.BaseUrl = "${{ secrets.APIM_BASE_URL }}"
109+ # $appsettings.Azure.APIM.SubscriptionKey = "${{ secrets.APIM_SUBSCRIPTION_KEY }}"
110+ # $appsettings | ConvertTo-Json -Depth 100 | Out-File -FilePath ./samples/SpotifyPlaylist.ConsoleApp/appsettings.Development.json -Force
111+
112+ # $date = (Get-Date).ToUniversalTime().AddHours(9).ToString("yyyyMMdd")
113+ # # $result = dotnet run --project ./samples/SpotifyPlaylist.ConsoleApp/ -- -t spotify -s ${{ secrets.SPOTIFY_BILLBOARD_HOT100_PLAYLIST_ID }} --json | ConvertFrom-Json
114+ # $result = dotnet run --project ./samples/SpotifyPlaylist.ConsoleApp/ -- -t spotify -s ${{ secrets.SPOTIFY_BILLBOARD_HOT100_PLAYLIST_ID }} --json
115+
116+ # mkdir -p ./data
117+ # pushd ./data
118+ # # $result[$($result.indexOf("{"))..$($result.Length-1)] | ConvertTo-Json -Depth 100 | Out-File -FilePath "billboard100-$date.json" -Force
119+ # $result[$($result.indexOf("{"))..$($result.Length-1)] | Out-File -FilePath "billboard100-$date.json" -Force
120+ # popd
121121
122122 - name : Upload data
123123 if : steps.check_to_proceed.outputs.proceed == 'true'
0 commit comments