Fix workflow auto_messages_pot for has_diff
This commit is contained in:
parent
33af9b876f
commit
d11857d0c0
1 changed files with 4 additions and 0 deletions
4
.github/workflows/auto_messages_pot.yml
vendored
4
.github/workflows/auto_messages_pot.yml
vendored
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue