Skip to content

Commit cb9db76

Browse files
committed
using my personal token
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
1 parent c8aa85b commit cb9db76

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/dapr_cli.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ jobs:
151151
# Parse repository to get owner and repo names
152152
OWNER_NAME="${GITHUB_REPOSITORY%%/*}"
153153
REPO_NAME="${GITHUB_REPOSITORY#*/}"
154-
export GITHUB_TOKEN=${{ secrets.DAPR_BOT_TOKEN }}
154+
export GITHUB_TOKEN=${{ secrets.ALL_TOKEN }}
155155
echo "Uploading Dapr CLI Binaries to GitHub Release"
156156
github-release upload \
157157
--owner $OWNER_NAME --repo $REPO_NAME \
@@ -163,8 +163,6 @@ jobs:
163163
name: Publish to winget-pkgs
164164
needs: publish
165165
if: startswith(github.ref, 'refs/tags/v')
166-
env:
167-
WINGETCREATE_VERSION: 1.1.2.0
168166
runs-on: windows-latest
169167
steps:
170168
- name: Check out code
@@ -174,11 +172,11 @@ jobs:
174172
- name: Update winget manifests
175173
shell: pwsh
176174
run: |
177-
$url = "https://github.com/dapr/cli/releases/download/v${{ env.REL_VERSION }}/dapr.msi"
178-
iwr https://github.com/microsoft/winget-create/releases/download/v${{ env.WINGETCREATE_VERSION }}/wingetcreate.exe -OutFile wingetcreate.exe
175+
$url = "https://github.com/shivamkm07/cli/releases/download/v${{ env.REL_VERSION }}/dapr.msi"
176+
iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
179177
if("${{ env.REL_VERSION }}".Contains("-rc.")){
180178
$PackageIdentifier="Dapr.CLI.Preview"
181179
} else{
182180
$PackageIdentifier="Dapr.CLI"
183181
}
184-
.\wingetcreate.exe update "$PackageIdentifier" --submit --urls "$url|x64" --version "${{ env.REL_VERSION }}" --token "${{ secrets.DAPR_BOT_TOKEN }}"
182+
.\wingetcreate.exe update "$PackageIdentifier" --submit --urls "$url|x64" --version "${{ env.REL_VERSION }}" --token "${{ secrets.ALL_TOKEN }}"

0 commit comments

Comments
 (0)