Skip to content

Commit

Permalink
Backport PR #11214: Check i18n will pass on zeroed patch pre-release …
Browse files Browse the repository at this point in the history
…version (#11231)

Co-authored-by: Frédéric Collonval <fcollonval@gmail.com>
  • Loading branch information
meeseeksmachine and fcollonval committed Oct 5, 2021
1 parent cef708c commit fc00631
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/check-i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ jobs:
EXPECTED=$(python scripts/i18n_check.py | tail -n1)
if [[ "${CURRENT}" != "${EXPECTED}" ]]; then
echo "Translatable strings have changed, this is only allowed on major or minor version bumps."
if [[ "${GITHUB_BASE_REF}" != "master" ]]; then
# Set job status as failed if
# - branch is not "master"
# - and current version is not a pre release of a zeroed patch version
if [[ "${GITHUB_BASE_REF}" != "master" && ! ( $(python setup.py --version) =~ ^[0-9]+\.[0-9]+\.0(\.dev|a|b|rc)[0-9]+$ ) ]]; then
exit 1
fi
fi

0 comments on commit fc00631

Please sign in to comment.