From 0a693426ec35fd9d76ef2f5a7fbcaf4d49ecf730 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Sun, 8 Jan 2023 18:35:31 +0300 Subject: [PATCH] Delete cloc.ps1 --- Scripts/cloc.ps1 | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 Scripts/cloc.ps1 diff --git a/Scripts/cloc.ps1 b/Scripts/cloc.ps1 deleted file mode 100644 index d4e7ff07..00000000 --- a/Scripts/cloc.ps1 +++ /dev/null @@ -1,23 +0,0 @@ -# Download cloc -# https://github.com/AlDanial/cloc - -$Token = "${{ secrets.GITHUB_TOKEN }}" -$Headers = @{ - Accept = "application/json" - Authorization = "Bearer $Token" -} -$Parameters = @{ - Uri = "https://api.github.com/repos/AlDanial/cloc/releases/latest" - Headers = $Headers - UseBasicParsing = $true - Verbose = $true -} -$Tag = (Invoke-RestMethod @Parameters).tag_name.replace("v", "") - -$Parameters = @{ - Uri = "https://github.com/AlDanial/cloc/releases/download/v$Tag/cloc-$Tag.exe" - OutFile = "$PSScriptRoot\cloc.exe" - UseBasicParsing = $true - Verbose = $true -} -Invoke-WebRequest @Parameters