Skip to content

Commit

Permalink
Update sphinx.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiangirlea committed Jun 23, 2023
1 parent b6a208d commit a4a5803
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ jobs:
run: sudo apt install gettext
- name: Install sphinx-intl
run: pip install sphinx-intl
- name: Update POT-Creation-Date in .po files
run: |
find locales -type f -name '*.po' | while read -r file; do
if grep -q 'POT-Creation-Date:' "$file" && ! grep -q 'POT-Creation-Date: .\+' "$file"; then
current_date=$(date '+%Y-%m-%d %H:%M')
sed -i "s/POT-Creation-Date:/POT-Creation-Date: $current_date/" "$file"
fi
done
- name: Dynamically update .po files for all languages
run: |
for lang_dir in $(find locales -type d -name LC_MESSAGES); do
Expand Down

0 comments on commit a4a5803

Please sign in to comment.