File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,18 @@ 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 }}
2318
2419 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+
2527 - name : Submit package using wingetcreate
28+ env :
29+ WINGET_CREATE_GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
2630 run : |
2731 # Set the package ID based on the release info
2832 $packageId = if (${{ !github.event.release.prerelease }}) { "GitHub.Copilot" } else { "GitHub.Copilot.Prerelease" }
You can’t perform that action at this time.
0 commit comments