Browse Source

Update Badge_lines.yml

master
Dmitry Nefedov 3 weeks ago
committed by GitHub
parent
commit
9d95cd3016
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 10
      .github/workflows/Badge_lines.yml

10
.github/workflows/Badge_lines.yml

@ -18,13 +18,13 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@main
- name: Get the Numbers
- name: Get Sophia_Script_for_Windows_11 folder lines number
run: |
$a = 0
Get-ChildItem -Path src -File -Recurse | ForEach-Object -Process {
$a += ((Get-Content -Path $_.FullName).Count | Measure-Object -Sum).Sum
$Summary = 0
Get-ChildItem -Path src\Sophia_Script_for_Windows_11 -File -Recurse | ForEach-Object -Process {
$Summary += ((Get-Content -Path $_.FullName).Count | Measure-Object -Sum).Sum
}
$Summary = "{0:N1}k" -f ($a/1000)
$Summary = "{0:N1}k" -f ($Summary/1000)
Write-Verbose -Message $Summary -Verbose

Loading…
Cancel
Save