Skip to content

Commit

Permalink
[CI] dont update locale on 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvergara committed Oct 5, 2022
1 parent 0eb91bb commit ca66d15
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/update-locale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
- name: Update locale
run: |
bash tools/transifex/update_locale.sh
bash tools/transifex/update_locale.sh 3.3
# Add the files, commit and push
git diff --staged --quiet || git commit -m "Update locale: commit ${{ env.GIT_HASH }}"
Expand Down
6 changes: 6 additions & 0 deletions tools/transifex/update_locale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
DIR=$(git rev-parse --show-toplevel)

pushd "${DIR}" > /dev/null || exit 1
VERSION=$(grep -Po '(?<=set\(MINORS )[^;]+' CMakeLists.txt | awk '{ print $1}')
echo "${VERSION}" | awk '{ print $1}'
if (( $(echo "${VERSION} <= $1" |bc -l) )); then
exit 0
fi


mkdir -p build
pushd build > /dev/null || exit 1
Expand Down

0 comments on commit ca66d15

Please sign in to comment.