From bdd6bb47c2456f34173f09e40cd41b607b304196 Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Sun, 27 Aug 2023 17:46:19 +0100 Subject: [PATCH] ci: use env to pass PAT --- .github/workflows/winget-submission.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/winget-submission.yml b/.github/workflows/winget-submission.yml index ae26597..885de66 100644 --- a/.github/workflows/winget-submission.yml +++ b/.github/workflows/winget-submission.yml @@ -9,12 +9,13 @@ jobs: winget: name: Publish winget package runs-on: windows-latest + env: + WINGET_PAT: ${{ secrets.WINGET_PAT }} steps: - name: Submit package to Winget Community Repo run: | $packageId = "Vencord.Vesktop" - $gitToken = "${{ secrets.WINGET_PAT }}" # Fetching latest release from GitHub $github = Invoke-RestMethod -uri "https://api.github.com/repos/vencord/vesktop/releases" @@ -24,4 +25,4 @@ jobs: # Update package using wingetcreate Invoke-WebRequest https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe - .\wingetcreate.exe update $packageId --version $packageVersion --urls "$installerUrl" --submit --token $gitToken + .\wingetcreate.exe update $packageId --version $packageVersion --urls "$installerUrl" --submit --token $env:WINGET_PAT