From 4bbae77f4188834b3e997c9b05ea79b41d2a6601 Mon Sep 17 00:00:00 2001 From: "Martin Hinshelwood nkdAgility.com" Date: Fri, 15 Nov 2024 13:06:33 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20(main.yaml):=20specify=20shell?= =?UTF-8?q?=20for=20PowerShell=20script=20and=20add=20environment=20variab?= =?UTF-8?q?les?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Specify the shell as 'pwsh' for running the PowerShell script to ensure compatibility and correct execution. Add environment variables SPOTIFY_CLIENT_SECRET and YOUTUBE_API_KEY to securely pass sensitive information required by the script, enhancing security and functionality. --- .github/workflows/main.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 859deaf..6307620 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -175,6 +175,10 @@ jobs: - name: getEpisodeList.ps1 run: | ./.powershell/getEpisodeList.ps1 + shell: pwsh + env: + SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }} + YOUTUBE_API_KEY: ${{ secrets.YOUTUBE_API_KEY }} - uses: cschleiden/replace-tokens@v1 with: files: '["**/*.html", "**/*.yaml"]'