Feat translations #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: i18n Knock Automation | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
prepare_translations: | |
name: Prepare Translation Files | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref }} | |
fetch-depth: 0 # Ensure full branch history | |
- name: Install Dependencies | |
run: npm ci # Ensures a clean install using package-lock.json | |
- name: Process Translations | |
run: npm run translate # Adjust to your relevant command | |
env: | |
LINGODOTDEV_API_KEY: ${{ secrets.LINGODOTDEV_API_KEY }} | |
- name: Commit and Push Changes | |
run: | | |
git config --global user.name "GitHub Actions" | |
git config --global user.email "[email protected]" | |
git add . | |
git diff --quiet && git diff --staged --quiet || git commit -m "chore: rename translation files" | |
git push origin HEAD | |
continue-on-error: true |