small adjustment

This commit is contained in:
github-actions
2024-08-06 13:54:38 +02:00
parent 33bdace731
commit f544768d0b
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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