Skip to content

Commit 91c80c8

Browse files
authored
Update update-lint-and-build.yml: commit chart separately
Fixes an issue with missing last datapoint in the chart.
1 parent 6ab2104 commit 91c80c8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/update-lint-and-build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,17 @@ jobs:
4141
! git diff -I'^"POT-Creation-Date: ' -I'^"Language-Team: ' -I'^# Copyright (C) 2001-' --exit-code && echo "SIGNIFICANT_CHANGES=1" >> $GITHUB_ENV || exit 0
4242
- run: >
4343
! git diff -G'\!\[[0-9]{2,3}\.[0-9]{2}% przełącznika języków\]' --exit-code README.md && echo "SWITCHER_PROGRESS=1" >> $GITHUB_ENV || exit 0
44+
- run: git add .
45+
- run: git commit -m 'Update translation from Transifex'
46+
if: env.SIGNIFICANT_CHANGES
4447
- run: pip install gitpython matplotlib
4548
if: env.SWITCHER_PROGRESS
4649
- run: python update_switcher_chart.py
4750
if: env.SWITCHER_PROGRESS
4851
- run: git add .
49-
- run: git commit -m 'Update translation from Transifex' || true
50-
if: env.SIGNIFICANT_CHANGES
52+
if: env.SWITCHER_PROGRESS
53+
- run: git commit -m 'Update switcher progress chart'
54+
if: env.SWITCHER_PROGRESS
5155
- uses: ad-m/github-push-action@master
5256
if: env.SIGNIFICANT_CHANGES
5357
with:

0 commit comments

Comments
 (0)