mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
ci: use env var instead of passing winget token inline (#24387)
This commit is contained in:
@@ -823,15 +823,16 @@ jobs:
|
||||
.\wingetcreate.exe update Coder.Coder `
|
||||
--submit `
|
||||
--version "${version}" `
|
||||
--urls "${amd64_installer_url}" "${amd64_zip_url}" "${arm64_zip_url}" `
|
||||
--token "$env:WINGET_GH_TOKEN"
|
||||
--urls "${amd64_installer_url}" "${amd64_zip_url}" "${arm64_zip_url}"
|
||||
|
||||
env:
|
||||
# For gh CLI:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
# For wingetcreate. We need a real token since we're pushing a commit
|
||||
# to GitHub and then making a PR in a different repo.
|
||||
WINGET_GH_TOKEN: ${{ secrets.CDRCI_GITHUB_TOKEN }}
|
||||
# wingetcreate will read the token from the environment variable defined below.
|
||||
# Reference: https://aka.ms/winget-create-token
|
||||
WINGET_CREATE_GITHUB_TOKEN: ${{ secrets.CDRCI_GITHUB_TOKEN }}
|
||||
VERSION: ${{ needs.release.outputs.version }}
|
||||
|
||||
- name: Comment on PR
|
||||
|
||||
Reference in New Issue
Block a user