diff --git a/.github/workflows/i18n.yml b/.github/workflows/i18n.yml index 22d2d58..efb0f34 100644 --- a/.github/workflows/i18n.yml +++ b/.github/workflows/i18n.yml @@ -25,19 +25,7 @@ jobs: poetry run pybabel extract --output=/tmp/kosmorro-messages.pot kosmorro echo diff=$(diff kosmorro/locales/messages.pot /tmp/kosmorro-messages.pot | grep '^>') - n=$(echo "$diff" | grep -v '> "POT-Creation-Date: ' | wc -l) - - if [ "$(echo "$diff" | grep -E '^"Generated-By: Babel' | wc -l)" -eq "1" ]; then - echo "❌ Your dependencies may be out of date!" - echo " Please run the following command to fix this:" - echo - echo " poetry install" - echo - echo " Then update the messages file:" - echo - echo " make messages" - exit 2 - fi + n=$(echo "$diff" | grep -Ev '> "(POT-Creation-Date)|(Generated-By): ' | wc -l) if [ "$n" -ne "0" ]; then echo "❌ The messages file is not up-to-date!" diff --git a/poetry.lock b/poetry.lock index 11ce23d..8d209e6 100644 --- a/poetry.lock +++ b/poetry.lock @@ -30,7 +30,7 @@ python-versions = ">=3.7,<4.0" [[package]] name = "babel" -version = "2.10.2" +version = "2.10.3" description = "Internationalization utilities" category = "main" optional = false @@ -377,8 +377,8 @@ aurornis = [ {file = "aurornis-1.4.0.tar.gz", hash = "sha256:0d9280b7d03cd84a874deaf6506ba720ab5f68ff90a0d3af1d8966d5f31b707b"}, ] babel = [ - {file = "Babel-2.10.2-py3-none-any.whl", hash = "sha256:81a3beca4d0cd40a9cfb9e2adb2cf39261c2f959b92e7a74750befe5d79afd7b"}, - {file = "Babel-2.10.2.tar.gz", hash = "sha256:7aed055f0c04c9e7f51a2f75261e41e1c804efa724cb65b60a970dd4448d469d"}, + {file = "Babel-2.10.3-py3-none-any.whl", hash = "sha256:ff56f4892c1c4bf0d814575ea23471c230d544203c7748e8c68f0089478d48eb"}, + {file = "Babel-2.10.3.tar.gz", hash = "sha256:7614553711ee97490f732126dc077f8d0ae084ebc6a96e23db1482afabdb2c51"}, ] black = [ {file = "black-22.6.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:f586c26118bc6e714ec58c09df0157fe2d9ee195c764f630eb0d8e7ccce72e69"},