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