Skip to content

Commit

Permalink
update i18n workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbot committed Jan 24, 2024
1 parent 30bc7e5 commit 07f55dd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/update-pot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,16 @@ jobs:
- name: Check for changes
id: git-diff
run: |
git diff --exit-code || echo "::set-output name=changes::true"
# Extract the current and previous versions of the .pot file
git show HEAD:languages/woocommerce-pos.pot > old.pot
tail -n +16 languages/woocommerce-pos.pot > new-trimmed.pot
tail -n +16 old.pot > old-trimmed.pot
# Compare the trimmed files
diff --exit-code old-trimmed.pot new-trimmed.pot || echo "::set-output name=changes::true"

# Clean up temporary files
rm old.pot new-trimmed.pot old-trimmed.pot

- name: Commit updated POT file
if: steps.git-diff.outputs.changes == 'true'
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ There is more information on our website at [https://wcpos.com](https://wcpos.co

== Changelog ==

= 1.4.10 =
= 1.4.10 - 2024/01/23 =
* Fix: compatibility issue with WooCommerce < 6.7.0

= 1.4.9 - 2024/01/21 =
Expand Down Expand Up @@ -122,7 +122,7 @@ There is more information on our website at [https://wcpos.com](https://wcpos.co
= 1.3.8 - 2023/08/08 =
* Fix: login modal for desktop application

= 1.3.7 = 2023/07/31 =
= 1.3.7 - 2023/07/31 =
* Fix: rest_pre_serve_request critical error reported by some users
* Fix: change 'woocommerce_available_payment_gateways' filter priority to 99
* Add: setting for servers that don't allow Authorization header
Expand Down

0 comments on commit 07f55dd

Please sign in to comment.