chore(deps): update node.js to adeb6d3 #1273
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: Lint i18n files | |
on: | |
pull_request: | |
types: [opened, ready_for_review, reopened, synchronize] | |
jobs: | |
format-and-commit: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.head.ref == 'phrase-translations' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: 'refs/heads/phrase-translations' | |
- name: Run format:i18n script | |
run: npm run format:i18n | |
- name: Check for changes | |
id: check_changes | |
run: | | |
git diff --exit-code || echo "changes=true" >> "$GITHUB_ENV" | |
- name: Commit changes | |
if: env.changes == 'true' | |
run: | | |
git config user.name "automotiveengineeringbot" | |
git config user.email "[email protected]" | |
git add . | |
git commit -m "Automated i18n formatting" | |
git push origin ${{ github.event.pull_request.head.ref }} |