1
0
Fork 0

Fix workflow auto_messages_pot for has_diff

This commit is contained in:
Félix Piédallu 2024-06-02 21:16:24 +02:00 committed by Salamandar
parent 33af9b876f
commit d11857d0c0

View file

@ -30,7 +30,11 @@ jobs:
cd tools/readme_generator/ cd tools/readme_generator/
pybabel extract --ignore-dirs venv -F babel.cfg -o messages.pot . 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 - name: Create Pull Request
if: ${{ env.HAS_DIFF == 'true' }}
uses: peter-evans/create-pull-request@v6 uses: peter-evans/create-pull-request@v6
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}