Skip to content

Commit

Permalink
fix(workflows/build): pot file updating
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user authored and LaoSparrow committed Oct 25, 2024
1 parent 3cde13b commit c107944
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ jobs:
dotnet tool run GetText.Extractor -u -o -s $p.FullName -t $pot
}
git add -N src/**/i18n/*.pot
foreach ($p in @((git diff --numstat).Split([System.Environment]::NewLine))) {
foreach ($p in @(git diff --numstat)) {
if (!$p.EndsWith(".pot")) { continue }
$d = $p.Split("`t")
if ($d[0] -le 2 -and $d[1] -le 2) {
$d = -split $p
if ([int]$d[0] -le 2 -and [int]$d[1] -le 2) {
git checkout $d[2]
} else {
foreach ($t in @(Get-ChildItem $([System.IO.Path]::GetDirectoryName($d[2]))*.po)) {
Expand Down

0 comments on commit c107944

Please sign in to comment.