From ac4b34e6440cb301fb16d47ebc796a1134677de9 Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Sun, 8 Jan 2023 17:55:17 +0300 Subject: [PATCH] Update Badge.yml --- .github/workflows/Badge.yml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/workflows/Badge.yml b/.github/workflows/Badge.yml index 22868248..144f05be 100644 --- a/.github/workflows/Badge.yml +++ b/.github/workflows/Badge.yml @@ -22,20 +22,7 @@ jobs: - name: Download cloc run: | - $Parameters = @{ - Uri = "https://api.github.com/repos/AlDanial/cloc/releases/latest" - 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 + . Scripts\cloc.ps1 - name: Get the Numbers run: |