Skip to content

Commit 2f6d6f8

Browse files
authored
Use Invoke-RestMethod
1 parent 1a26e1a commit 2f6d6f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

get-tag.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
$repoName = "thosoo/VSCodiumPortable"
22
$releasesUri = "https://api.github.com/repos/$repoName/releases/latest"
3-
$tag = (Invoke-WebRequest $releasesUri | ConvertFrom-Json).tag_name
3+
$tag = (Invoke-RestMethod -Uri $releasesUri).tag_name
44
echo $tag

0 commit comments

Comments
 (0)