Skip to content

Commit 6118464

Browse files
authored
Merge pull request #805 from github/revert-764-devm33/winget-app
2 parents e5349eb + 812c707 commit 6118464

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

.github/workflows/winget.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,14 @@ jobs:
1515

1616
# winget-create is only supported on Windows
1717
runs-on: windows-latest
18+
19+
# winget-create will read the following environment variable to access the GitHub token needed for submitting a PR
20+
# See https://aka.ms/winget-create-token
21+
env:
22+
WINGET_CREATE_GITHUB_TOKEN: ${{ secrets.WINGET_CREATE_GITHUB_TOKEN }}
1823

1924
steps:
20-
- name: Generate release app access token
21-
id: app-token
22-
uses: actions/create-github-app-token@v2
23-
with:
24-
app-id: ${{ secrets.COPILOT_CLI_RELEASE_APP_ID }}
25-
private-key: ${{ secrets.COPILOT_CLI_RELEASE_APP_PRIVATE_KEY }}
26-
2725
- name: Submit package using wingetcreate
28-
env:
29-
WINGET_CREATE_GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
3026
run: |
3127
# Set the package ID based on the release info
3228
$packageId = if (${{ !github.event.release.prerelease }}) { "GitHub.Copilot" } else { "GitHub.Copilot.Prerelease" }

0 commit comments

Comments
 (0)