Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 37b0c6c

Browse files
committed
Automate refreshing the chart when there's a switcher progress
Refs #35
1 parent 9fd764c commit 37b0c6c

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/update-chart.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
on:
2-
push: {branches: ['3.13']}
32
workflow_dispatch:
43
jobs:
54
update-chart:

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ jobs:
3838
- run: git config --local user.name "GitHub Action's update-translation job"
3939
- run: >
4040
! git diff -I'^"POT-Creation-Date: ' -I'^"Language-Team: ' -I'^# Copyright (C) 2001-' --exit-code && echo "SIGNIFICANT_CHANGES=1" >> $GITHUB_ENV || exit 0
41+
- run: >
42+
! 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
43+
- run: pip install gitpython matplotlib
44+
if: env.SWITCHER_PROGRESS
45+
- run: python update_switcher_chart.py
46+
if: env.SWITCHER_PROGRESS
4147
- run: git add .
4248
- run: git commit -m 'Update translation from Transifex' || true
4349
if: env.SIGNIFICANT_CHANGES

0 commit comments

Comments
 (0)