Skip to content

Commit 21c17b2

Browse files
authored
Refactor localization update workflow (#1234)
- 🔧 Moved "Install Dependencies" step above "Run Translations Import" - 🗑️ Removed unnecessary "Check for Changes" step - ✅ Simplified the process for adding changes before commit -Priyanshu
1 parent 77859f8 commit 21c17b2

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/loc-update.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,15 @@ jobs:
2828
node-version: '18'
2929
cache: 'npm'
3030

31+
- name: Install Dependencies
32+
run: npm ci
33+
3134
- name: Run Translations Import
3235
run: npm run translations-import
3336

34-
- name: Check for Changes
35-
id: git-check
36-
run: |
37-
git add -A
38-
git diff --staged --quiet && echo "changes=false" >> $GITHUB_OUTPUT || echo "changes=true" >> $GITHUB_OUTPUT
39-
37+
- name: Add Changes
38+
run: git add -A
4039
- name: Commit and Push Changes
41-
if: steps.git-check.outputs.changes == 'true'
4240
run: |
4341
git config --local user.name "github-actions[bot]"
4442
git config --local user.email "github-actions[bot]@users.noreply.github.com"

0 commit comments

Comments
 (0)