Browse Source

Update Badge.yml

pull/437/head
Dmitry Nefedov 2 years ago
committed by GitHub
parent
commit
ac4b34e644
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      .github/workflows/Badge.yml

15
.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: |

Loading…
Cancel
Save