Skip to content

Updated currupted image link #364

Updated currupted image link

Updated currupted image link #364

Workflow file for this run

name: Badge
on:
push:
branches:
- master
# tags:
# - '*.*.*'
pull_request:
branches:
- master
jobs:
update-badges:
name: Update Badges
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@main
- name: Get the Numbers
run: |
$ExcudedJSONs = @(
"UIData_CZ.json",
"UIData_DE.json",
"UIData_ES.json",
"UIData_FR.json",
"UIData_IT.json",
"UIData_PL.json",
"UIData_RU.json",
"UIData_TR.json",
"UIData_UA.json",
"UIData_zh_CN.json"
)
$Summary = (Get-ChildItem -Path "src/SophiApp" -Recurse -File -Force | Where-Object -FilterScript {$_.Name -notin $ExcudedJSONs} | ForEach-Object -Process {(Get-Content -Path $_.FullName).Count} | Measure-Object -Sum).Sum
$Summary = "{0:N1}k" -f ($Summary/1000)
Write-Verbose -Message $Summary -Verbose
echo "CODE_LINES=$Summary" >> $env:GITHUB_ENV
- name: Writing to Gist
uses: schneegans/dynamic-badges-action@master
with:
auth: ${{ secrets.GIST_SophiApp }}
gistID: c9f6b02ff4037050dcaade30c574bac7
filename: SophiApp.json
label: Lines of Code
message: ${{ env.CODE_LINES }}
namedLogo: C Sharp
color: brightgreen