Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions .github/workflows/winget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,14 @@ jobs:

# winget-create is only supported on Windows
runs-on: windows-latest

Copy link

Copilot AI Dec 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line contains trailing whitespace. Consider removing it to maintain clean code formatting.

Suggested change

Copilot uses AI. Check for mistakes.
# winget-create will read the following environment variable to access the GitHub token needed for submitting a PR
# See https://aka.ms/winget-create-token
env:
WINGET_CREATE_GITHUB_TOKEN: ${{ secrets.WINGET_CREATE_GITHUB_TOKEN }}

steps:
- name: Generate release app access token
id: app-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.COPILOT_CLI_RELEASE_APP_ID }}
private-key: ${{ secrets.COPILOT_CLI_RELEASE_APP_PRIVATE_KEY }}

- name: Submit package using wingetcreate
env:
WINGET_CREATE_GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
# Set the package ID based on the release info
$packageId = if (${{ !github.event.release.prerelease }}) { "GitHub.Copilot" } else { "GitHub.Copilot.Prerelease" }
Expand Down