Skip to content

Commit

Permalink
test initial script
Browse files Browse the repository at this point in the history
  • Loading branch information
RadhepS committed Feb 4, 2025
1 parent d8eaa8b commit 79bb220
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/check-translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Check Translation Changes

on:
pull_request:
paths:
- '**/assets/translations/**'

jobs:
check-translations:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Run translation change script
run: |
changed_files=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep 'assets/translations')
if [ -n "$changed_files" ]; then
for file in $changed_files; do
folder_path=$(dirname "$file")
echo "Changes detected in $folder_path"
echo "$folder_path"
done
else
echo "No translation changes detected"
fi

0 comments on commit 79bb220

Please sign in to comment.