Skip to content

Commit

Permalink
ci: fix I18n sync ignoring master branch (#3225)
Browse files Browse the repository at this point in the history
  • Loading branch information
Exitare authored Jan 6, 2025
1 parent 4442cc8 commit a000e2d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/sync_i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ name: Check and Fix Missing Translation Keys

on:
push:
branches:
- '**'
pull_request:
branches:
- main
branches-ignore:
- master

jobs:
check-translation-keys:
Expand All @@ -15,6 +12,9 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # Ensure full Git history is fetched
ref: ${{ github.ref }} # Checkout the branch that triggered the workflow

- name: Set up Python
uses: actions/setup-python@v4
Expand All @@ -35,7 +35,7 @@ jobs:
git config user.email "[email protected]"
git add apps/keira/src/assets/i18n/*.json
git commit -m "Fix missing translation keys"
git push
git push origin HEAD
else
echo "No missing keys detected."
fi

0 comments on commit a000e2d

Please sign in to comment.