From d11857d0c08fd78dd441a32e554966a724328dc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sun, 2 Jun 2024 21:16:24 +0200 Subject: [PATCH] Fix workflow auto_messages_pot for has_diff --- .github/workflows/auto_messages_pot.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/auto_messages_pot.yml b/.github/workflows/auto_messages_pot.yml index 18e5c00..d058ca6 100644 --- a/.github/workflows/auto_messages_pot.yml +++ b/.github/workflows/auto_messages_pot.yml @@ -30,7 +30,11 @@ jobs: cd tools/readme_generator/ pybabel extract --ignore-dirs venv -F babel.cfg -o messages.pot . + HAS_DIFF=$(python .github/diff_pot_files.py tools/readme_generator/messages.pot.old tools/readme_generator/messages.pot) + echo "HAS_DIFF=$HAS_DIFF" >> $GITHUB_ENV + - name: Create Pull Request + if: ${{ env.HAS_DIFF == 'true' }} uses: peter-evans/create-pull-request@v6 with: token: ${{ secrets.GITHUB_TOKEN }}