Merge pull request #1611 from JornieNonsubia/lang-uk #281
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: Update Translations | |
on: | |
push: | |
branches: | |
- develop | |
paths: | |
- 'lang/*.json' | |
jobs: | |
translations: | |
if: github.repository_owner == 'Miskatonic-Investigative-Society' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: | | |
npm install | |
node generate-translations.js | |
npm run format | |
- run: | | |
git config user.name 'snap01' | |
git config user.email '[email protected]' | |
git add .github/TRANSLATIONS.md | |
git commit -m "Updated translations list" | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 |