Browse Source

Update Badge_lines.yml

pull/619/head
Dmitry Nefedov 4 months 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 - name: Checkout Repository
uses: actions/checkout@main uses: actions/checkout@main
- name: Get the Numbers - name: Get Sophia_Script_for_Windows_11 folder lines number
run: | run: |
$a = 0 $Summary = 0
Get-ChildItem -Path src -File -Recurse | ForEach-Object -Process { Get-ChildItem -Path src\Sophia_Script_for_Windows_11 -File -Recurse | ForEach-Object -Process {
$a += ((Get-Content -Path $_.FullName).Count | Measure-Object -Sum).Sum $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 Write-Verbose -Message $Summary -Verbose

Loading…
Cancel
Save