mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 02:14:13 +00:00
small adjustment
This commit is contained in:
2
.github/workflows/translation.yml
vendored
2
.github/workflows/translation.yml
vendored
@@ -7,7 +7,7 @@ on:
|
|||||||
- dev
|
- dev
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
run_scripts:
|
||||||
if: github.repository == 'wavelog/wavelog'
|
if: github.repository == 'wavelog/wavelog'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
|||||||
@@ -70,9 +70,11 @@ sed -i '8d' "$TEMP_POT_FILE"
|
|||||||
# Compare the new POT file with the existing one (excluding the POT Creation Date)
|
# Compare the new POT file with the existing one (excluding the POT Creation Date)
|
||||||
if ! diff -I 'POT-Creation-Date' "$TEMP_POT_FILE" "$POT_FILE" >/dev/null; then
|
if ! diff -I 'POT-Creation-Date' "$TEMP_POT_FILE" "$POT_FILE" >/dev/null; then
|
||||||
echo "Updating POT file with new translations."
|
echo "Updating POT file with new translations."
|
||||||
|
echo " "
|
||||||
mv "$TEMP_POT_FILE" "$POT_FILE"
|
mv "$TEMP_POT_FILE" "$POT_FILE"
|
||||||
else
|
else
|
||||||
echo "No changes detected in translations. POT file remains unchanged."
|
echo "No changes detected in translations. POT file remains unchanged."
|
||||||
|
echo " "
|
||||||
rm "$TEMP_POT_FILE"
|
rm "$TEMP_POT_FILE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user