Skip to content

Merge pull request #1586 from doumoku/develop #273

Merge pull request #1586 from doumoku/develop

Merge pull request #1586 from doumoku/develop #273

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